fallbackswitch: Consistently store running time in last_sinkpad_time

It was using buffer timestamps mixed with running time
This commit is contained in:
Vivia Nikolaidou 2020-08-05 18:49:44 +00:00
parent 4b171ec7ff
commit a91e8aadb2

View file

@ -214,7 +214,7 @@ impl FallbackSwitch {
drop(active_sinkpad); drop(active_sinkpad);
if !is_late || state.last_sinkpad_time.is_none() { if !is_late || state.last_sinkpad_time.is_none() {
state.last_sinkpad_time = buffer.get_dts_or_pts(); state.last_sinkpad_time = running_time;
} }
// Drop all older buffers from the fallback sinkpad // Drop all older buffers from the fallback sinkpad