diff options
author | François Laignel <fengalin@free.fr> | 2022-03-22 19:29:28 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2022-03-28 12:50:57 +0300 |
commit | e7c62cb1f426543337ee294f7a50fd0f4f7d4a02 (patch) | |
tree | 89f1a198eb8c31cbbee03fa2413f95bbf94a7e5b | |
parent | 0b615409ac5acb05fa6af402da3ce39d42f6e173 (diff) |
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
-rw-r--r-- | generic/threadshare/src/jitterbuffer/imp.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/threadshare/src/jitterbuffer/imp.rs b/generic/threadshare/src/jitterbuffer/imp.rs index f7cfd2656..c84d8050c 100644 --- a/generic/threadshare/src/jitterbuffer/imp.rs +++ b/generic/threadshare/src/jitterbuffer/imp.rs @@ -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; |