mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-20 14:46:24 +00:00
utils/fallbacksrc: Don't schedule a source restart timeout if the source is already pending restart
This commit is contained in:
parent
9ebcfbf333
commit
a2c0d70930
1 changed files with 9 additions and 0 deletions
|
@ -2048,6 +2048,15 @@ impl FallbackSrc {
|
||||||
state: &mut State,
|
state: &mut State,
|
||||||
elapsed: gst::ClockTime,
|
elapsed: gst::ClockTime,
|
||||||
) {
|
) {
|
||||||
|
if state.source_pending_restart {
|
||||||
|
gst_debug!(
|
||||||
|
CAT,
|
||||||
|
obj: element,
|
||||||
|
"Not scheduling source restart timeout because source is pending restart already",
|
||||||
|
);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let clock = gst::SystemClock::obtain();
|
let clock = gst::SystemClock::obtain();
|
||||||
let wait_time = clock.get_time()
|
let wait_time = clock.get_time()
|
||||||
+ gst::ClockTime::from_nseconds(state.settings.restart_timeout)
|
+ gst::ClockTime::from_nseconds(state.settings.restart_timeout)
|
||||||
|
|
Loading…
Reference in a new issue