From a347846698fd60a71b0bba8ec45e898bf58f0874 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Wed, 26 Oct 2022 07:04:52 +0200 Subject: [PATCH] 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: --- subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c b/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c index 68f2da1..cc71a58 100644 --- a/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c +++ b/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c @@ -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); -- 2.7.4