From: Wim Taymans Date: Thu, 3 Sep 2009 16:53:19 +0000 (+0200) Subject: audiortppay: add some debugging X-Git-Tag: 1.19.3~511^2~9262 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7a7663476f478c4c92b3c61604e091464f26a9e3;p=platform%2Fupstream%2Fgstreamer.git audiortppay: add some debugging --- diff --git a/gst-libs/gst/rtp/gstbasertpaudiopayload.c b/gst-libs/gst/rtp/gstbasertpaudiopayload.c index 424c3e4..26b802e 100644 --- a/gst-libs/gst/rtp/gstbasertpaudiopayload.c +++ b/gst-libs/gst/rtp/gstbasertpaudiopayload.c @@ -668,11 +668,19 @@ gst_base_rtp_audio_payload_handle_buffer (GstBaseRTPPayload * * output buffers containing the same RTP timestamp gap as the gap * between the GST timestamps. */ if (timestamp > priv->last_timestamp) { + GstClockTime diff; + guint64 bytes; /* we're only going to apply a positive gap, otherwise we let the marker * bit do its thing. simply convert to bytes and add the the current * offset */ - priv->offset += - priv->time_to_bytes (payload, timestamp - priv->last_timestamp); + diff = timestamp - priv->last_timestamp; + bytes = priv->time_to_bytes (payload, diff); + priv->offset += bytes; + + GST_DEBUG_OBJECT (payload, + "elapsed time %" GST_TIME_FORMAT ", bytes %" G_GUINT64_FORMAT + ", new offset %" G_GUINT64_FORMAT, GST_TIME_ARGS (diff), bytes, + priv->offset); } } }