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 8eb8ea0e7d
commit 1ef9ae6398

View file

@ -1111,7 +1111,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;