mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-02 00:11:01 +00:00
fallbackswitch: Consistently store running time in last_sinkpad_time
It was using buffer timestamps mixed with running time
This commit is contained in:
parent
4b171ec7ff
commit
a91e8aadb2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue