mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
jiterbuffer: Move assertion to the right location
We shouldn't have "late" lost timers at that point
This commit is contained in:
parent
b82da62922
commit
5fa1c2ba59
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue