From: Edward Hervey Date: Wed, 6 May 2009 11:17:35 +0000 (+0200) Subject: mad: Add duration of incoming/outgoing buffers in debug statements X-Git-Tag: 1.19.3~505^2~1387 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=88db06cb65ae52a7fde84a30aab5635b6f2e77f4;p=platform%2Fupstream%2Fgstreamer.git mad: Add duration of incoming/outgoing buffers in debug statements --- diff --git a/ext/mad/gstmad.c b/ext/mad/gstmad.c index 8aad51854d..379f219417 100644 --- a/ext/mad/gstmad.c +++ b/ext/mad/gstmad.c @@ -1297,7 +1297,8 @@ gst_mad_chain (GstPad * pad, GstBuffer * buffer) discont = GST_BUFFER_IS_DISCONT (buffer); timestamp = GST_BUFFER_TIMESTAMP (buffer); - GST_DEBUG ("mad in timestamp %" GST_TIME_FORMAT, GST_TIME_ARGS (timestamp)); + GST_DEBUG ("mad in timestamp %" GST_TIME_FORMAT " duration:%" GST_TIME_FORMAT, + GST_TIME_ARGS (timestamp), GST_TIME_ARGS (GST_BUFFER_DURATION (buffer))); /* handle timestamps */ if (GST_CLOCK_TIME_IS_VALID (timestamp)) { @@ -1623,8 +1624,9 @@ gst_mad_chain (GstPad * pad, GstBuffer * buffer) outdata = (gint32 *) GST_BUFFER_DATA (outbuffer); - GST_DEBUG ("mad out timestamp %" GST_TIME_FORMAT, - GST_TIME_ARGS (time_offset)); + GST_DEBUG ("mad out timestamp %" GST_TIME_FORMAT " dur: %" + GST_TIME_FORMAT, GST_TIME_ARGS (time_offset), + GST_TIME_ARGS (time_duration)); GST_BUFFER_TIMESTAMP (outbuffer) = time_offset; GST_BUFFER_DURATION (outbuffer) = time_duration;