mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-25 21:11:00 +00:00
fallbackswitch: Use cancel_timeout in schedule_timeout
Dedupe the code and use the function that does the exact same thing.
This commit is contained in:
parent
f7f65e5bcb
commit
90ad761d83
1 changed files with 1 additions and 4 deletions
|
@ -500,10 +500,7 @@ impl FallbackSwitch {
|
|||
settings: &Settings,
|
||||
running_time: gst::ClockTime,
|
||||
) {
|
||||
/* clear any previous timeout */
|
||||
if let Some(clock_id) = state.timeout_clock_id.take() {
|
||||
clock_id.unschedule();
|
||||
}
|
||||
state.cancel_timeout();
|
||||
|
||||
let clock = match element.clock() {
|
||||
None => return,
|
||||
|
|
Loading…
Reference in a new issue