mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-22 11:30:59 +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,
|
settings: &Settings,
|
||||||
running_time: gst::ClockTime,
|
running_time: gst::ClockTime,
|
||||||
) {
|
) {
|
||||||
/* clear any previous timeout */
|
state.cancel_timeout();
|
||||||
if let Some(clock_id) = state.timeout_clock_id.take() {
|
|
||||||
clock_id.unschedule();
|
|
||||||
}
|
|
||||||
|
|
||||||
let clock = match element.clock() {
|
let clock = match element.clock() {
|
||||||
None => return,
|
None => return,
|
||||||
|
|
Loading…
Reference in a new issue