mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-23 17:38:20 +00:00
fallbackswitch: Change the threshold for trailing buffers
Only discard buffers on inactive pads if they are later than the current output running time, rather than the later timeout running time. That can mean switching to a higher priority pad can happen quicker. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1285>
This commit is contained in:
parent
081a90fefc
commit
eda38a637e
1 changed files with 2 additions and 2 deletions
|
@ -765,9 +765,9 @@ impl FallbackSwitch {
|
||||||
start_running_time,
|
start_running_time,
|
||||||
state.upstream_latency + settings.latency,
|
state.upstream_latency + settings.latency,
|
||||||
)
|
)
|
||||||
} else if state.timeout_running_time.is_some()
|
} else if state.output_running_time.is_some()
|
||||||
&& end_running_time.map_or(false, |end_running_time| {
|
&& end_running_time.map_or(false, |end_running_time| {
|
||||||
end_running_time < state.timeout_running_time.unwrap()
|
end_running_time < state.output_running_time.unwrap()
|
||||||
})
|
})
|
||||||
{
|
{
|
||||||
if raw_pad {
|
if raw_pad {
|
||||||
|
|
Loading…
Reference in a new issue