From c2fa0b50ce66b95ef552864ca2a00638c523ddc8 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Fri, 12 Aug 2022 20:20:43 +1000 Subject: [PATCH] qtdemux: Avoid crash on reconfiguring. When reconfiguring a stream that never created an output pad, don't access a NULL GstPad pointer. Part-of: --- subprojects/gst-plugins-good/gst/isomp4/qtdemux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c b/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c index d9f118c..7ce652a 100644 --- a/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c +++ b/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c @@ -13596,7 +13596,8 @@ qtdemux_reuse_and_configure_stream (GstQTDemux * qtdemux, /* unset new_stream to prevent stream-start event, unless we are EOS in which * case we need to force one through */ - newstream->new_stream = GST_PAD_IS_EOS (newstream->pad); + newstream->new_stream = newstream->pad != NULL + && GST_PAD_IS_EOS (newstream->pad); return gst_qtdemux_configure_stream (qtdemux, newstream); } -- 2.7.4