decodebin3: do not attempt to remove a null stream

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7605>
This commit is contained in:
Théo Maillart 2024-09-27 15:09:38 +02:00 committed by GStreamer Marge Bot
parent bb05e78349
commit 1d86761712

View file

@ -1911,6 +1911,7 @@ gst_decodebin_input_reset (DecodebinInput * input)
SELECTION_LOCK (dbin); SELECTION_LOCK (dbin);
stream = find_input_stream_for_pad (dbin, idpad); stream = find_input_stream_for_pad (dbin, idpad);
if (stream)
remove_input_stream (dbin, stream); remove_input_stream (dbin, stream);
SELECTION_UNLOCK (dbin); SELECTION_UNLOCK (dbin);