mssdemux2: Don't expose/use streams we can't handle yet
authorEdward Hervey <edward@centricular.com>
Thu, 28 Apr 2022 08:49:55 +0000 (10:49 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 28 Apr 2022 10:45:37 +0000 (10:45 +0000)
Avoids issues further down

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2319>

subprojects/gst-plugins-good/ext/adaptivedemux2/mss/gstmssdemux.c

index 3175effe5bf16fbcd6101221c5367fcd147bfde1..14d2a8b6f34f86a1698b207d6608e574c26d79de 100644 (file)
@@ -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",