mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-29 21:40:31 +00:00
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.
This commit is contained in:
parent
6c6917077d
commit
b180517b29
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue