From 1d86761712178a19766091779a0da14f5ff5449d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Maillart?= Date: Fri, 27 Sep 2024 15:09:38 +0200 Subject: [PATCH] decodebin3: do not attempt to remove a null stream Part-of: --- subprojects/gst-plugins-base/gst/playback/gstdecodebin3.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-base/gst/playback/gstdecodebin3.c b/subprojects/gst-plugins-base/gst/playback/gstdecodebin3.c index 92547188cb..10ebc764ff 100644 --- a/subprojects/gst-plugins-base/gst/playback/gstdecodebin3.c +++ b/subprojects/gst-plugins-base/gst/playback/gstdecodebin3.c @@ -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);