From 87609f05a940205a43a6c2f34e068927cfbf7875 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 21 Sep 2007 11:34:34 +0000 Subject: gst/rtp/gstrtpamrdepay.c: Set outgoing packet duration because we can. Fixes #478244 some more. Original commit message from CVS: * gst/rtp/gstrtpamrdepay.c: (gst_rtp_amr_depay_process): Set outgoing packet duration because we can. Fixes #478244 some more. --- ChangeLog | 5 +++++ gst/rtp/gstrtpamrdepay.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index e04a4f49..1a3ebae6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-09-21 Wim Taymans + + * gst/rtp/gstrtpamrdepay.c: (gst_rtp_amr_depay_process): + Set outgoing packet duration because we can. Fixes #478244 some more. + 2007-09-20 Stefan Kost * ext/cairo/gsttextoverlay.c: diff --git a/gst/rtp/gstrtpamrdepay.c b/gst/rtp/gstrtpamrdepay.c index 6daad659..1694b168 100644 --- a/gst/rtp/gstrtpamrdepay.c +++ b/gst/rtp/gstrtpamrdepay.c @@ -409,6 +409,9 @@ gst_rtp_amr_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf) dp += fr_size; } } + /* we can set the duration because each packet is 20 milliseconds */ + GST_BUFFER_DURATION (outbuf) = num_packets * 20 * GST_MSECOND; + gst_buffer_set_caps (outbuf, GST_PAD_CAPS (GST_BASE_RTP_DEPAYLOAD_SRCPAD (depayload))); -- cgit