diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2020-07-07 10:21:24 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2020-07-07 10:21:24 +0300 |
commit | 879767599e97f83400e12e227061c1bb326e3d5d (patch) | |
tree | 1b87539396e1d6857647bc82fdab5ef7b6cca0e4 | |
parent | 55f3349b39538e291f5f2ab1955273c505cf4d44 (diff) |
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.
-rw-r--r-- | utils/fallbackswitch/src/fallbackswitch.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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); |