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.
This commit is contained in:
Sebastian Dröge 2020-07-07 10:21:24 +03:00
parent 55f3349b39
commit 879767599e

View file

@ -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);