From 7c9eb0335fa33cce62ab252baca8a0ea9d650bc0 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Thu, 28 Apr 2022 10:49:55 +0200 Subject: [PATCH] mssdemux2: Don't expose/use streams we can't handle yet Avoids issues further down Part-of: --- .../gst-plugins-good/ext/adaptivedemux2/mss/gstmssdemux.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/subprojects/gst-plugins-good/ext/adaptivedemux2/mss/gstmssdemux.c b/subprojects/gst-plugins-good/ext/adaptivedemux2/mss/gstmssdemux.c index 3175effe5b..14d2a8b6f3 100644 --- a/subprojects/gst-plugins-good/ext/adaptivedemux2/mss/gstmssdemux.c +++ b/subprojects/gst-plugins-good/ext/adaptivedemux2/mss/gstmssdemux.c @@ -375,6 +375,11 @@ gst_mss_demux_setup_streams (GstAdaptiveDemux * demux) GstCaps *caps; GstTagList *tags = NULL; + if (stream_type == GST_STREAM_TYPE_UNKNOWN) { + GST_WARNING_OBJECT (mssdemux, "Skipping unknown stream %s", name); + continue; + } + if (name) stream_id = g_strdup_printf ("mss-stream-%s-%s", -- 2.34.1