From aaf9b46e2f864f284694f7079e572bbd1ac3761e 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 9017747c8d..29610bb9de 100644 --- a/subprojects/gst-plugins-base/gst/playback/gstdecodebin3.c +++ b/subprojects/gst-plugins-base/gst/playback/gstdecodebin3.c @@ -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);