Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorJan Schmidt <jan@centricular.com>2023-06-19 17:33:56 +0300
committerJan Schmidt <jan@centricular.com>2023-07-06 18:45:52 +0300
commit2abc72b60688d067133f27bedd991746bc1db190 (patch)
tree20d9f1df222e2e7398eb56985b4c086a67037994 /utils
parent61e282af1a160e5fd70a60ad7a6c60f5b7205697 (diff)
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/1198>
Diffstat (limited to 'utils')
-rw-r--r--utils/fallbackswitch/src/fallbackswitch/imp.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/fallbackswitch/src/fallbackswitch/imp.rs b/utils/fallbackswitch/src/fallbackswitch/imp.rs
index 676449fbe..e51b36f5b 100644
--- a/utils/fallbackswitch/src/fallbackswitch/imp.rs
+++ b/utils/fallbackswitch/src/fallbackswitch/imp.rs
@@ -765,9 +765,9 @@ impl FallbackSwitch {
start_running_time,
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 < state.timeout_running_time.unwrap()
+ end_running_time < state.output_running_time.unwrap()
})
{
if raw_pad {