tsdemux: Push GST_EVENT_STREAM_COLLECTION

Demuxers that are not streams-aware will have that handled by parsebin. This
created a difference in results downstream between streams-aware and
non-streams-aware demuxers

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2784>
This commit is contained in:
Edward Hervey 2022-11-02 14:45:51 +01:00 committed by GStreamer Marge Bot
parent e68baffcd9
commit 3305d7ce8d

View file

@ -2231,6 +2231,9 @@ gst_ts_demux_update_program (MpegTSBase * base, MpegTSBaseProgram * program)
gst_pad_push_event (stream->pad, gst_event_new_gap (0, 0));
}
}
if (stream->pad)
gst_pad_push_event (stream->pad,
gst_event_new_stream_collection (program->collection));
}
}
@ -2317,6 +2320,9 @@ gst_ts_demux_program_started (MpegTSBase * base, MpegTSBaseProgram * program)
GST_DEBUG_OBJECT (stream->pad, "sparse stream, pushing GAP event");
gst_pad_push_event (stream->pad, gst_event_new_gap (0, 0));
}
if (stream->pad)
gst_pad_push_event (stream->pad,
gst_event_new_stream_collection (program->collection));
}
gst_element_no_more_pads ((GstElement *) demux);