similar fix for count ref
authorThomas Vander Stichele <thomas@apestaart.org>
Mon, 4 Feb 2002 22:41:23 +0000 (22:41 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Mon, 4 Feb 2002 22:41:23 +0000 (22:41 +0000)
Original commit message from CVS:
similar fix for count ref

gst/gstbufferpool.c

index 91ab9cd..d857f4b 100644 (file)
@@ -107,7 +107,7 @@ void
 gst_buffer_pool_ref_by_count (GstBufferPool *pool, int count) 
 {
   g_return_if_fail (pool != NULL);
-  g_return_if_fail (count > 0);
+  g_return_if_fail (count >= 0);
 
 #ifdef HAVE_ATOMIC_H
   g_return_if_fail (atomic_read (&(pool->refcount)) > 0);