urisourcebin: Only allow streams-aware adaptive demuxer

We no longer want to deal with elements that use the old-style of stream
switching and instead expose/remove streams as they appear/disappear

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2784>
This commit is contained in:
Edward Hervey 2022-10-26 07:04:52 +02:00 committed by GStreamer Marge Bot
parent e7eb9271ee
commit a347846698

View file

@ -1876,6 +1876,11 @@ make_demuxer (GstURISourceBin * urisrc, GstCaps * caps)
continue;
demuxer = gst_element_factory_create (factory, NULL);
if (!GST_OBJECT_FLAG_IS_SET (demuxer, GST_BIN_FLAG_STREAMS_AWARE)) {
GST_DEBUG_OBJECT (urisrc, "Ignoring non-streams-aware adaptive demuxer");
gst_object_unref (demuxer);
continue;
}
break;
}
gst_plugin_feature_list_free (eligible);