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:
authorSebastian Dröge <sebastian@centricular.com>2020-05-08 13:55:48 +0300
committerSebastian Dröge <sebastian@centricular.com>2020-05-08 13:56:50 +0300
commitb180517b29bde16970b976f75a23da31b18d057b (patch)
treee37ec9c9d9b2ed3a80e5e96b7c496242834f7651 /utils
parent6c6917077d942b4d84c6aa97f88cfb4f2797e986 (diff)
fallbackswitch/fallbackswitch: Don't convert buffer PTS/DTS twice to running time
They were already converted to the running time a few lines above and updated inside the buffer. Converting another time for the timeout causes the timeout to happen at the wrong time, usually much later than it should.
Diffstat (limited to 'utils')
-rw-r--r--utils/fallbackswitch/src/fallbackswitch.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/fallbackswitch/src/fallbackswitch.rs b/utils/fallbackswitch/src/fallbackswitch.rs
index 8934d6b81..5f41ec169 100644
--- a/utils/fallbackswitch/src/fallbackswitch.rs
+++ b/utils/fallbackswitch/src/fallbackswitch.rs
@@ -170,7 +170,7 @@ impl FallbackSwitch {
}
drop(active_sinkpad);
- state.last_sinkpad_time = segment.to_running_time(buffer.get_dts_or_pts());
+ state.last_sinkpad_time = buffer.get_dts_or_pts();
// Drop all older buffers from the fallback sinkpad
if let Some(fallback_sinkpad) = fallback_sinkpad {