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:
Sebastian Dröge 2020-05-08 13:55:48 +03:00
parent 6c6917077d
commit b180517b29

View file

@ -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 {