mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-21 21:46:22 +00:00
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6690>
This commit is contained in:
parent
4e5a54612e
commit
049665ccaa
1 changed files with 2 additions and 1 deletions
|
@ -951,7 +951,8 @@ demux_pad_events (GstPad * pad, GstPadProbeInfo * info, OutputSlotInfo * slot)
|
||||||
{
|
{
|
||||||
/* This is a temporary hack to notify downstream decodebin3 to *not*
|
/* This is a temporary hack to notify downstream decodebin3 to *not*
|
||||||
* plug in an extra parsebin */
|
* 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;
|
GstStructure *s;
|
||||||
GST_PAD_PROBE_INFO_DATA (info) = ev = gst_event_make_writable (ev);
|
GST_PAD_PROBE_INFO_DATA (info) = ev = gst_event_make_writable (ev);
|
||||||
s = (GstStructure *) gst_event_get_structure (ev);
|
s = (GstStructure *) gst_event_get_structure (ev);
|
||||||
|
|
Loading…
Reference in a new issue