mssdemux2: Don't expose/use streams we can't handle yet

Avoids issues further down

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2319>
This commit is contained in:
Edward Hervey 2022-04-28 10:49:55 +02:00 committed by GStreamer Marge Bot
parent 2ec79418df
commit 7c9eb0335f

View 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",