mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-29 15:01:07 +00:00
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:
parent
55f3349b39
commit
879767599e
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ impl FallbackSwitch {
|
||||||
let latency = agg.get_latency();
|
let latency = agg.get_latency();
|
||||||
|
|
||||||
if latency.is_some() {
|
if latency.is_some() {
|
||||||
let deadline = base_time + running_time + latency;
|
let deadline = base_time + running_time + latency + 40 * gst::MSECOND;
|
||||||
|
|
||||||
if now > deadline {
|
if now > deadline {
|
||||||
gst_debug!(CAT, obj: agg, "Buffer is too late: {} > {}", now, deadline);
|
gst_debug!(CAT, obj: agg, "Buffer is too late: {} > {}", now, deadline);
|
||||||
|
|
Loading…
Reference in a new issue