mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
print the pre-operation refcount for ref and unref
Original commit message from CVS: print the pre-operation refcount for ref and unref
This commit is contained in:
parent
2ad92e2c16
commit
97978f6056
1 changed files with 4 additions and 4 deletions
|
@ -303,9 +303,9 @@ void
|
|||
gst_buffer_ref (GstBuffer *buffer)
|
||||
{
|
||||
g_return_if_fail (buffer != NULL);
|
||||
g_return_if_fail (GST_BUFFER_REFCOUNT(buffer) > 0);
|
||||
|
||||
GST_INFO (GST_CAT_BUFFER, "ref buffer %p\n", buffer);
|
||||
GST_INFO (GST_CAT_BUFFER, "ref buffer %p, current count is %d", buffer,GST_BUFFER_REFCOUNT(buffer));
|
||||
g_return_if_fail (GST_BUFFER_REFCOUNT(buffer) > 0);
|
||||
|
||||
#ifdef HAVE_ATOMIC_H
|
||||
atomic_inc (&(buffer->refcount));
|
||||
|
@ -353,9 +353,9 @@ gst_buffer_unref (GstBuffer *buffer)
|
|||
gint zero;
|
||||
|
||||
g_return_if_fail (buffer != NULL);
|
||||
g_return_if_fail (GST_BUFFER_REFCOUNT(buffer) > 0);
|
||||
|
||||
GST_INFO (GST_CAT_BUFFER, "unref buffer %p\n", buffer);
|
||||
GST_INFO (GST_CAT_BUFFER, "unref buffer %p, current count is %d", buffer,GST_BUFFER_REFCOUNT(buffer));
|
||||
g_return_if_fail (GST_BUFFER_REFCOUNT(buffer) > 0);
|
||||
|
||||
#ifdef HAVE_ATOMIC_H
|
||||
zero = atomic_dec_and_test (&(buffer->refcount));
|
||||
|
|
Loading…
Reference in a new issue