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,7 +1911,8 @@ gst_decodebin_input_reset (DecodebinInput * input)
SELECTION_LOCK (dbin);
stream = find_input_stream_for_pad (dbin, idpad);
remove_input_stream (dbin, stream);
if (stream)
remove_input_stream (dbin, stream);
SELECTION_UNLOCK (dbin);
gst_object_unref (idpad);