diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2020-05-08 13:55:48 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2020-05-08 13:56:50 +0300 |
commit | b180517b29bde16970b976f75a23da31b18d057b (patch) | |
tree | e37ec9c9d9b2ed3a80e5e96b7c496242834f7651 /utils | |
parent | 6c6917077d942b4d84c6aa97f88cfb4f2797e986 (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.rs | 2 |
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 { |