mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 14:06:23 +00:00
this is better
Original commit message from CVS: this is better
This commit is contained in:
parent
26d7525c14
commit
0631f3a082
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue