mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-23 02:26:35 +00:00
fallbackswitch: Only update the output running time if it's increasing
This commit is contained in:
parent
930cdca750
commit
d73bce2985
1 changed files with 7 additions and 2 deletions
|
@ -731,8 +731,13 @@ impl FallbackSwitch {
|
|||
}
|
||||
}
|
||||
|
||||
if start_running_time.is_some() {
|
||||
state.output_running_time = start_running_time;
|
||||
if let Some(start_running_time) = start_running_time {
|
||||
if let Some(output_running_time) = state.output_running_time {
|
||||
state.output_running_time =
|
||||
Some(std::cmp::max(start_running_time, output_running_time));
|
||||
} else {
|
||||
state.output_running_time = Some(start_running_time);
|
||||
}
|
||||
}
|
||||
|
||||
if let Some(end_running_time) = end_running_time {
|
||||
|
|
Loading…
Reference in a new issue