mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 01:31:03 +00:00
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:
parent
932f0a6175
commit
09be1ab863
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue