From: Thomas Vander Stichele Date: Mon, 4 Feb 2002 22:33:48 +0000 (+0000) Subject: shouldn't fuss about not needing to ref at all X-Git-Tag: RELEASE-0_3_3-GUADECBYFOOT~158 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=26d7525c14bb3943114ab5deb50eb9fc4857fa95;p=platform%2Fupstream%2Fgstreamer.git 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 --- diff --git a/gst/gstbuffer.c b/gst/gstbuffer.c index 841a1fc..5f49f1c 100644 --- a/gst/gstbuffer.c +++ b/gst/gstbuffer.c @@ -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