Commit 46af9721 authored by Seungha Yang's avatar Seungha Yang 🐑

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
parent 4eacce80
......@@ -2017,6 +2017,15 @@ impl FallbackSrc {
Some(state) => state,
for stream in [state.video_stream.as_mut(), state.audio_stream.as_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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment