From 5fa1c2ba590c8471b8fc3d5d8674182e03e5b6ee Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Thu, 7 Apr 2016 13:01:52 +0200 Subject: [PATCH] jiterbuffer: Move assertion to the right location We shouldn't have "late" lost timers at that point --- 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 608c794336..4ccde7a7ca 100644 --- a/gst/rtpmanager/gstrtpjitterbuffer.c +++ b/gst/rtpmanager/gstrtpjitterbuffer.c @@ -3581,10 +3581,10 @@ wait_next_timeout (GstRtpJitterBuffer * jitterbuffer) GstClockReturn ret; GstClockTimeDiff clock_jitter; - /* We have normally removed all lost timers in the loop above */ - g_assert (timer->type != TIMER_TYPE_LOST); - if (timer_timeout == -1 || timer_timeout <= now) { + /* We have normally removed all lost timers in the loop above */ + g_assert (timer->type != TIMER_TYPE_LOST); + do_timeout (jitterbuffer, timer, now); /* check here, do_timeout could have released the lock */ if (!priv->timer_running)