urisourcebin: Also use event probe for HLS use-cases

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3957

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7822>
This commit is contained in:
Edward Hervey 2024-11-04 09:21:44 +01:00 committed by Edward Hervey
parent 932f0a6175
commit 09be1ab863

View file

@ -1357,6 +1357,14 @@ new_output_slot (ChildSrcPadInfo * info, GstPad * originating_pad)
gst_pad_link (originating_pad, slot->queue_sinkpad);
} else {
if (info->demuxer) {
/* Make sure we add the event probe *before* linking */
slot->demuxer_event_probe_id =
gst_pad_add_probe (originating_pad,
GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM | GST_PAD_PROBE_TYPE_EVENT_FLUSH,
(GstPadProbeCallback) demux_pad_events, slot, NULL);
}
/* Expose pad directly */
slot->output_pad = create_output_pad (slot, originating_pad);
}