From 879767599e97f83400e12e227061c1bb326e3d5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 7 Jul 2020 10:21:24 +0300 Subject: utils/fallbackswitch: Allow buffers to be up to 40ms too late before considering them too late This mirrors the processing-deadline property on various elements, but for now just with a hardcoded value. --- utils/fallbackswitch/src/fallbackswitch.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/fallbackswitch/src/fallbackswitch.rs b/utils/fallbackswitch/src/fallbackswitch.rs index 9017030d7..6c9c424f4 100644 --- a/utils/fallbackswitch/src/fallbackswitch.rs +++ b/utils/fallbackswitch/src/fallbackswitch.rs @@ -159,7 +159,7 @@ impl FallbackSwitch { let latency = agg.get_latency(); if latency.is_some() { - let deadline = base_time + running_time + latency; + let deadline = base_time + running_time + latency + 40 * gst::MSECOND; if now > deadline { gst_debug!(CAT, obj: agg, "Buffer is too late: {} > {}", now, deadline); -- cgit v1.2.3