From: Stefan Sauer Date: Mon, 25 Feb 2013 17:49:56 +0000 (+0100) Subject: audioringbuffer: log a few more details (e.g. obj-name) X-Git-Tag: 1.1.1~320 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b274ff7c21a8bffd7b9ecb5babf83ce85d89ea84;p=platform%2Fupstream%2Fgst-plugins-base.git audioringbuffer: log a few more details (e.g. obj-name) --- diff --git a/gst-libs/gst/audio/gstaudioringbuffer.c b/gst-libs/gst/audio/gstaudioringbuffer.c index c19a110..3c7884e 100644 --- a/gst-libs/gst/audio/gstaudioringbuffer.c +++ b/gst-libs/gst/audio/gstaudioringbuffer.c @@ -1470,6 +1470,8 @@ default_commit (GstAudioRingBuffer * buf, guint64 * sample, writeseg = *sample / sps; sampleoff = (*sample % sps) * bpf; + GST_DEBUG_OBJECT (buf, "write %d : %d", in_samples, out_samples); + /* write out all samples */ while (*toprocess > 0) { gint avail; @@ -1486,14 +1488,13 @@ default_commit (GstAudioRingBuffer * buf, guint64 * sample, /* see how far away it is from the write segment */ diff = writeseg - segdone; - GST_DEBUG - ("pointer at %d, write to %d-%d, diff %d, segtotal %d, segsize %d, base %d", + GST_DEBUG_OBJECT (buf, + "pointer at %d, write to %d-%d, diff %d, segtotal %d, segsize %d, base %d", segdone, writeseg, sampleoff, diff, segtotal, segsize, buf->segbase); /* segment too far ahead, writer too slow, we need to drop, hopefully UNLIKELY */ if (G_UNLIKELY (diff < 0)) { - /* we need to drop one segment at a time, pretend we wrote a - * segment. */ + /* we need to drop one segment at a time, pretend we wrote a segment. */ skip = TRUE; break; }