decodebin3: do not attempt to remove a null stream

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

View file

@ -1792,7 +1792,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);