From: Olivier CrĂȘte Date: Mon, 10 May 2010 22:53:29 +0000 (-0400) Subject: basertpaudiopayload: Set duration on buffers X-Git-Tag: RELEASE-0.10.30~203 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8a2b81a5767725f242a3cd443955ad14bce6c6cd;p=platform%2Fupstream%2Fgst-plugins-base.git basertpaudiopayload: Set duration on buffers Set the duration of the buffers from their size --- diff --git a/gst-libs/gst/rtp/gstbasertpaudiopayload.c b/gst-libs/gst/rtp/gstbasertpaudiopayload.c index 5d43164..1596962 100644 --- a/gst-libs/gst/rtp/gstbasertpaudiopayload.c +++ b/gst-libs/gst/rtp/gstbasertpaudiopayload.c @@ -426,6 +426,9 @@ gst_base_rtp_audio_payload_set_meta (GstBaseRTPAudioPayload * payload, priv->offset += payload_len; + /* Set the duration from the size */ + GST_BUFFER_DURATION (buffer) = priv->bytes_to_time (payload, payload_len); + /* remember the last rtptime/timestamp pair. We will use this to realign our * RTP timestamp after a buffer discont */ priv->last_rtptime = GST_BUFFER_OFFSET (buffer);