projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26d7525
)
this is better
author
Thomas Vander Stichele
<thomas@apestaart.org>
Mon, 4 Feb 2002 22:40:30 +0000
(22:40 +0000)
committer
Thomas Vander Stichele
<thomas@apestaart.org>
Mon, 4 Feb 2002 22:40:30 +0000
(22:40 +0000)
Original commit message from CVS:
this is better
gst/gstbuffer.c
patch
|
blob
|
history
diff --git
a/gst/gstbuffer.c
b/gst/gstbuffer.c
index
5f49f1c
..
0f5a836
100644
(file)
--- a/
gst/gstbuffer.c
+++ b/
gst/gstbuffer.c
@@
-347,8
+347,7
@@
void
gst_buffer_ref_by_count (GstBuffer *buffer, gint count)
{
g_return_if_fail (buffer != NULL);
- if (count == 0) return; /* no error when no need to ref */
- g_return_if_fail (count > 0);
+ g_return_if_fail (count >= 0);
#ifdef HAVE_ATOMIC_H
g_return_if_fail (atomic_read (&(buffer->refcount)) > 0);