similar fix for count ref

Original commit message from CVS:
similar fix for count ref
This commit is contained in:
Thomas Vander Stichele 2002-02-04 22:41:23 +00:00
parent 0631f3a082
commit 98d9527ac7

View 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);