From 9c7e3e3455ac0aaf4bdf474fca7daad52b777a2a Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 2 Aug 2013 12:43:00 +0200 Subject: [PATCH] jitterbuffer: update timers after queueing Else we might update the timer needlessly for duplicates. --- gst/rtpmanager/gstrtpjitterbuffer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gst/rtpmanager/gstrtpjitterbuffer.c b/gst/rtpmanager/gstrtpjitterbuffer.c index 899a0ec3dc..47ae349e41 100644 --- a/gst/rtpmanager/gstrtpjitterbuffer.c +++ b/gst/rtpmanager/gstrtpjitterbuffer.c @@ -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);