jiterbuffer: Move assertion to the right location

We shouldn't have "late" lost timers at that point
This commit is contained in:
Edward Hervey 2016-04-07 13:01:52 +02:00 committed by Edward Hervey
parent b82da62922
commit 5fa1c2ba59

View file

@ -3581,10 +3581,10 @@ wait_next_timeout (GstRtpJitterBuffer * jitterbuffer)
GstClockReturn ret; GstClockReturn ret;
GstClockTimeDiff clock_jitter; GstClockTimeDiff clock_jitter;
if (timer_timeout == -1 || timer_timeout <= now) {
/* We have normally removed all lost timers in the loop above */ /* We have normally removed all lost timers in the loop above */
g_assert (timer->type != TIMER_TYPE_LOST); g_assert (timer->type != TIMER_TYPE_LOST);
if (timer_timeout == -1 || timer_timeout <= now) {
do_timeout (jitterbuffer, timer, now); do_timeout (jitterbuffer, timer, now);
/* check here, do_timeout could have released the lock */ /* check here, do_timeout could have released the lock */
if (!priv->timer_running) if (!priv->timer_running)