mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
mpegtsdemux: enable gather_pes only for DVB subtitle private streams
This commit is contained in:
parent
9b3b1aedea
commit
eaf1b316b0
1 changed files with 11 additions and 5 deletions
|
@ -1471,12 +1471,18 @@ gst_mpegts_stream_parse_pmt (GstMpegTSStream * stream,
|
||||||
/* set adaptor */
|
/* set adaptor */
|
||||||
GST_LOG ("Initializing PES filter for PID %u", ES_stream->PID);
|
GST_LOG ("Initializing PES filter for PID %u", ES_stream->PID);
|
||||||
gst_pes_filter_init (&ES_stream->filter, NULL, NULL);
|
gst_pes_filter_init (&ES_stream->filter, NULL, NULL);
|
||||||
|
|
||||||
if (ES_stream->stream_type == ST_PRIVATE_DATA) {
|
if (ES_stream->stream_type == ST_PRIVATE_DATA) {
|
||||||
GST_FIXME ("Stream type is ST_PRIVATE_DATA, setting "
|
guint8 *dvb_sub_desc = gst_mpeg_descriptor_find (ES_stream->ES_info,
|
||||||
"filter->gather_pes as a HACK");
|
DESC_DVB_SUBTITLING);
|
||||||
/* FIXME: There's another place where pes filters could get
|
|
||||||
* initialized. Might need similar temporary hack there as well */
|
/* enable gather PES for DVB subtitles since the dvbsuboverlay
|
||||||
ES_stream->filter.gather_pes = TRUE;
|
* expects complete PES packets */
|
||||||
|
if (dvb_sub_desc) {
|
||||||
|
/* FIXME: There's another place where pes filters could get
|
||||||
|
* initialized. Might need similar temporary hack there as well */
|
||||||
|
ES_stream->filter.gather_pes = TRUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
gst_pes_filter_set_callbacks (&ES_stream->filter,
|
gst_pes_filter_set_callbacks (&ES_stream->filter,
|
||||||
(GstPESFilterData) gst_mpegts_demux_data_cb,
|
(GstPESFilterData) gst_mpegts_demux_data_cb,
|
||||||
|
|
Loading…
Reference in a new issue