summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Raghavan <git@arunraghavan.net>2015-03-13 17:54:23 (GMT)
committerArun Raghavan <arun@accosted.net>2015-03-13 17:54:58 (GMT)
commit592fc9cdbadf6b7b3ea5e04fba87d8bf717055e4 (patch)
tree25abafbbf3acc941efb7d281d62ba1fc28bfc91f
parentb8232a74673afae38bc3bff70c7ed0d592209556 (diff)
downloadgst-plugins-base-592fc9cdbadf6b7b3ea5e04fba87d8bf717055e4.tar.gz
gst-plugins-base-592fc9cdbadf6b7b3ea5e04fba87d8bf717055e4.tar.xz
audioringbuffer: Log with the ringbuffer object where possible
-rw-r--r--gst-libs/gst/audio/gstaudioringbuffer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gst-libs/gst/audio/gstaudioringbuffer.c b/gst-libs/gst/audio/gstaudioringbuffer.c
index 4220e9d..d6f65f3 100644
--- a/gst-libs/gst/audio/gstaudioringbuffer.c
+++ b/gst-libs/gst/audio/gstaudioringbuffer.c
@@ -1737,8 +1737,8 @@ gst_audio_ring_buffer_read (GstAudioRingBuffer * buf, guint64 sample,
* reading) */
diff = segdone - readseg;
- GST_DEBUG
- ("pointer at %d, sample %" G_GUINT64_FORMAT
+ GST_DEBUG_OBJECT
+ (buf, "pointer at %d, sample %" G_GUINT64_FORMAT
", read from %d-%d, to_read %d, diff %d, segtotal %d, segsize %d",
segdone, sample, readseg, sampleoff, to_read, diff, segtotal,
segsize);
@@ -1850,7 +1850,7 @@ gst_audio_ring_buffer_prepare_read (GstAudioRingBuffer * buf, gint * segment,
*len = buf->spec.segsize;
*readptr = data + *segment * *len;
- GST_LOG ("prepare read from segment %d (real %d) @%p",
+ GST_LOG_OBJECT (buf, "prepare read from segment %d (real %d) @%p",
*segment, segdone, *readptr);
/* callback to fill the memory with data, for pull based
@@ -1920,7 +1920,7 @@ gst_audio_ring_buffer_clear (GstAudioRingBuffer * buf, gint segment)
data = buf->memory;
data += segment * buf->spec.segsize;
- GST_LOG ("clear segment %d @%p", segment, data);
+ GST_LOG_OBJECT (buf, "clear segment %d @%p", segment, data);
memcpy (data, buf->empty_seg, buf->spec.segsize);
}