decodebin3: do not attempt to remove a null stream
authorThéo Maillart <tmaillart@freebox.fr>
Fri, 27 Sep 2024 13:09:38 +0000 (15:09 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 3 Oct 2024 09:42:03 +0000 (09:42 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7605>

subprojects/gst-plugins-base/gst/playback/gstdecodebin3.c

index 92547188cb83d87310cd0e03312081d94e832967..10ebc764ffead6ad645e900552465491da008c50 100644 (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);