mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-20 09:06:32 +00:00
fallbacksrc: Clear exisiting pad probe on restarting
Fallback might happen even after uridecodebin3 exposed pad. For later use of audio and video streams, clear it if any
This commit is contained in:
parent
4eacce80a5
commit
46af97219c
1 changed files with 9 additions and 0 deletions
|
@ -2017,6 +2017,15 @@ impl FallbackSrc {
|
|||
}
|
||||
Some(state) => state,
|
||||
};
|
||||
|
||||
for stream in [state.video_stream.as_mut(), state.audio_stream.as_mut()]
|
||||
.iter_mut()
|
||||
.filter_map(|s| s.as_mut())
|
||||
{
|
||||
stream.source_srcpad_block = None;
|
||||
stream.source_srcpad = None;
|
||||
}
|
||||
|
||||
gst_debug!(CAT, obj: element, "Waiting for 1s before retrying");
|
||||
let clock = gst::SystemClock::obtain();
|
||||
let wait_time = clock.get_time() + gst::SECOND;
|
||||
|
|
Loading…
Reference in a new issue