From f9404c0b27f531d4cea74b9dbe07fb81f49cecfc Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 2 Jul 2010 12:10:16 +0200 Subject: [PATCH] ringbuffer: improve debugging --- gst-libs/gst/audio/gstringbuffer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/audio/gstringbuffer.c b/gst-libs/gst/audio/gstringbuffer.c index 3cd90334fb..7312d83f60 100644 --- a/gst-libs/gst/audio/gstringbuffer.c +++ b/gst-libs/gst/audio/gstringbuffer.c @@ -793,7 +793,7 @@ gst_ring_buffer_acquire (GstRingBuffer * buf, GstRingBufferSpec * spec) g_return_val_if_fail (GST_IS_RING_BUFFER (buf), FALSE); - GST_DEBUG_OBJECT (buf, "acquiring device"); + GST_DEBUG_OBJECT (buf, "acquiring device %p", buf); GST_OBJECT_LOCK (buf); if (G_UNLIKELY (!buf->open)) @@ -864,7 +864,8 @@ acquire_failed: invalid_bps: { g_warning - ("invalid bytes_per_sample from acquire ringbuffer, fix the element"); + ("invalid bytes_per_sample from acquire ringbuffer %p, fix the element", + buf); buf->acquired = FALSE; res = FALSE; goto done;