rtpjitterbuffer: Reschedule timers when updating their offset

As EXPECTED timers are skipped the order of the timers relative to each
other can change if there are EXPECTED timers and rescheduling needs to
happen.

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1422

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3416>
This commit is contained in:
Sebastian Dröge 2022-09-07 11:07:40 +03:00 committed by GStreamer Marge Bot
parent 02fd7fb777
commit 3d79402344

View file

@ -2274,10 +2274,9 @@ update_timer_offsets (GstRtpJitterBuffer * jitterbuffer)
test->timeout = GST_CLOCK_TIME_NONE;
test->offset = 0;
}
/* as we apply the offset on all timers, the order of timers won't
* change and we can skip updating the timer queue */
}
rtp_timer_queue_reschedule (priv->timers, test);
test = rtp_timer_get_next (test);
}
}