mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 20:59:44 +00:00
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:
parent
ac59cb71c0
commit
26d7525c14
1 changed files with 1 additions and 0 deletions
|
@ -347,6 +347,7 @@ void
|
||||||
gst_buffer_ref_by_count (GstBuffer *buffer, gint count)
|
gst_buffer_ref_by_count (GstBuffer *buffer, gint count)
|
||||||
{
|
{
|
||||||
g_return_if_fail (buffer != NULL);
|
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
|
#ifdef HAVE_ATOMIC_H
|
||||||
|
|
Loading…
Reference in a new issue