From 049665ccaaf5eaff23ca1637bd53a764ee9fbb1d Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Fri, 19 Apr 2024 11:31:54 +0200 Subject: [PATCH] urisourcebin2: Adaptive demuxers don't require another parsebin By setting the same field on the GST_EVENT_STREAM_START decodebin3 will be able to avoid plugging in an extra parsebin Part-of: --- subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c b/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c index b70a72c3f9..40a73cfeaa 100644 --- a/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c +++ b/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c @@ -951,7 +951,8 @@ demux_pad_events (GstPad * pad, GstPadProbeInfo * info, OutputSlotInfo * slot) { /* This is a temporary hack to notify downstream decodebin3 to *not* * plug in an extra parsebin */ - if (slot->linked_info && slot->linked_info->demuxer_is_parsebin) { + if (urisrc->is_adaptive || (slot->linked_info + && slot->linked_info->demuxer_is_parsebin)) { GstStructure *s; GST_PAD_PROBE_INFO_DATA (info) = ev = gst_event_make_writable (ev); s = (GstStructure *) gst_event_get_structure (ev);