mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-22 03:21:00 +00:00
fallbackswitch: Reset timeout_clock_id on timeout
We shouldn't leave the used clock ID around. Otherwise, we might never schedule a new timeout from an inactive pad if the active pad doesn't get a buffer.
This commit is contained in:
parent
90ad761d83
commit
a5dd92f479
1 changed files with 4 additions and 0 deletions
|
@ -482,6 +482,10 @@ impl FallbackSwitch {
|
|||
debug!(CAT, obj: element, "Late timeout callback. Ignoring");
|
||||
return;
|
||||
}
|
||||
|
||||
// Ensure sink_chain on an inactive pad can schedule another timeout
|
||||
state.timeout_clock_id = None;
|
||||
|
||||
self.handle_timeout(element, &mut state, settings);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue