mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-20 14:18:34 +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/6716>
This commit is contained in:
parent
e534f681b4
commit
ec2af45402
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*
|
||||
* 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);
|
||||
|
|
Loading…
Reference in a new issue