mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
jitterbuffer: update timers after queueing
Else we might update the timer needlessly for duplicates.
This commit is contained in:
parent
ebd6b8f8ab
commit
9c7e3e3455
1 changed files with 3 additions and 3 deletions
|
@ -1643,9 +1643,6 @@ gst_rtp_jitter_buffer_chain (GstPad * pad, GstObject * parent,
|
||||||
goto too_late;
|
goto too_late;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* update timers */
|
|
||||||
update_timers (jitterbuffer, seqnum, dts);
|
|
||||||
|
|
||||||
/* let's drop oldest packet if the queue is already full and drop-on-latency
|
/* let's drop oldest packet if the queue is already full and drop-on-latency
|
||||||
* is set. We can only do this when there actually is a latency. When no
|
* is set. We can only do this when there actually is a latency. When no
|
||||||
* latency is set, we just pump it in the queue and let the other end push it
|
* latency is set, we just pump it in the queue and let the other end push it
|
||||||
|
@ -1679,6 +1676,9 @@ gst_rtp_jitter_buffer_chain (GstPad * pad, GstObject * parent,
|
||||||
priv->clock_rate, &tail, &percent)))
|
priv->clock_rate, &tail, &percent)))
|
||||||
goto duplicate;
|
goto duplicate;
|
||||||
|
|
||||||
|
/* update timers */
|
||||||
|
update_timers (jitterbuffer, seqnum, dts);
|
||||||
|
|
||||||
/* we had an unhandled SR, handle it now */
|
/* we had an unhandled SR, handle it now */
|
||||||
if (priv->last_sr)
|
if (priv->last_sr)
|
||||||
do_handle_sync (jitterbuffer);
|
do_handle_sync (jitterbuffer);
|
||||||
|
|
Loading…
Reference in a new issue