ts/jitterbuffer: don't wake up immediately...

... when next wakeup delay is shorter than the max throttling duration.

See https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/169
This commit is contained in:
François Laignel 2022-03-22 17:29:28 +01:00 committed by Sebastian Dröge
parent 0b615409ac
commit e7c62cb1f4

View file

@ -1112,7 +1112,7 @@ impl TaskImpl for JitterBufferTask {
let (delay_fut, abort_handle) = abortable(async move {
match next_wakeup {
Some((_, delay)) => {
runtime::time::delay_for(delay).await;
runtime::time::delay_for_at_least(delay).await;
}
None => {
future::pending::<()>().await;