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 <sebastian@centricular.com>2022-03-28 12:50:57 +0300
commite7c62cb1f426543337ee294f7a50fd0f4f7d4a02 (patch)
tree89f1a198eb8c31cbbee03fa2413f95bbf94a7e5b
parent0b615409ac5acb05fa6af402da3ce39d42f6e173 (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.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 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;