shouldn't fuss about not needing to ref at all

Original commit message from CVS:
shouldn't fuss about not needing to ref at all
This commit is contained in:
Thomas Vander Stichele 2002-02-04 22:33:48 +00:00
parent ac59cb71c0
commit 26d7525c14

View file

@ -347,6 +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);
#ifdef HAVE_ATOMIC_H