mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
rtpjitterbuffer: Keep the DTS estimate if we got no DTS after a jitterbuffer reset
Otherwise we will just output buffers without timestamps after a reset if no timestamps are provided by upstream, e.g. when using RTSP over TCP. https://bugzilla.gnome.org/show_bug.cgi?id=749536
This commit is contained in:
parent
6eee26b24b
commit
68a9209408
1 changed files with 7 additions and 1 deletions
|
@ -2402,7 +2402,13 @@ gst_rtp_jitter_buffer_chain (GstPad * pad, GstObject * parent,
|
|||
* clock now to have something to calculate with in the future. */
|
||||
dts = get_current_running_time (jitterbuffer);
|
||||
pts = dts;
|
||||
estimated_dts = TRUE;
|
||||
|
||||
/* Remember that we estimated the DTS if we are running already
|
||||
* and this is not our first packet (or first packet after a reset).
|
||||
* If it's the first packet, we somehow must generate a timestamp for
|
||||
* everything, otherwise we can't calculate any times
|
||||
*/
|
||||
estimated_dts = (priv->next_in_seqnum != -1);
|
||||
} else {
|
||||
/* take the DTS of the buffer. This is the time when the packet was
|
||||
* received and is used to calculate jitter and clock skew. We will adjust
|
||||
|
|
Loading…
Reference in a new issue