jitterbuffer: update timers after queueing

Else we might update the timer needlessly for duplicates.
This commit is contained in:
Wim Taymans 2013-08-02 12:43:00 +02:00
parent ebd6b8f8ab
commit 9c7e3e3455

View file

@ -1643,9 +1643,6 @@ gst_rtp_jitter_buffer_chain (GstPad * pad, GstObject * parent,
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
* 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
@ -1679,6 +1676,9 @@ gst_rtp_jitter_buffer_chain (GstPad * pad, GstObject * parent,
priv->clock_rate, &tail, &percent)))
goto duplicate;
/* update timers */
update_timers (jitterbuffer, seqnum, dts);
/* we had an unhandled SR, handle it now */
if (priv->last_sr)
do_handle_sync (jitterbuffer);