this is better

Original commit message from CVS:
this is better
This commit is contained in:
Thomas Vander Stichele 2002-02-04 22:40:30 +00:00
parent 26d7525c14
commit 0631f3a082

View file

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