mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-17 22:06:41 +00:00
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.
This commit is contained in:
parent
ce322e50aa
commit
87609f05a9
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-09-21 Wim Taymans <wim.taymans@gmail.com>
|
||||
|
||||
* 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 <ensonic@users.sf.net>
|
||||
|
||||
* ext/cairo/gsttextoverlay.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)));
|
||||
|
||||
|
|
Loading…
Reference in a new issue