rtpamrpay: proper duration for multiple frame payload

This commit is contained in:
Mark Nauwelaerts 2010-08-18 11:42:33 +02:00
parent f5bbc56745
commit 275e352a2e

View file

@ -262,11 +262,10 @@ gst_rtp_amr_pay_handle_buffer (GstBaseRTPPayload * basepayload,
/* copy timestamp */
GST_BUFFER_TIMESTAMP (outbuf) = timestamp;
/* FIXME: when we do more than one AMR frame per packet, fix this */
if (duration != GST_CLOCK_TIME_NONE)
GST_BUFFER_DURATION (outbuf) = duration;
else {
GST_BUFFER_DURATION (outbuf) = 20 * GST_MSECOND;
GST_BUFFER_DURATION (outbuf) = num_packets * 20 * GST_MSECOND;
}
if (GST_BUFFER_IS_DISCONT (buffer)) {