Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrançois Laignel <fengalin@free.fr>2022-03-22 19:29:28 +0300
committerSebastian Dröge <slomo@coaxion.net>2022-03-28 11:47:32 +0300
commit1ef9ae639802b2735acad08b15e307cf78496d50 (patch)
tree2ae547d5b65d24a483fadc6a3e0d7914db34abbb /generic/threadshare/src/jitterbuffer
parent8eb8ea0e7d969726fffaa00d18d90a4ba926963b (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
Diffstat (limited to 'generic/threadshare/src/jitterbuffer')
-rw-r--r--generic/threadshare/src/jitterbuffer/imp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/threadshare/src/jitterbuffer/imp.rs b/generic/threadshare/src/jitterbuffer/imp.rs
index 248b9f156..cd4259a05 100644
--- a/generic/threadshare/src/jitterbuffer/imp.rs
+++ b/generic/threadshare/src/jitterbuffer/imp.rs
@@ -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;