From: Mathieu Duponchelle Date: Wed, 22 May 2019 23:44:19 +0000 (+0200) Subject: atscmux: send empty RRT / MGT / STT tables X-Git-Tag: 1.19.3~507^2~3290 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fdfd4600c15e64709ad77bbb11d242424c0b89cc;p=platform%2Fupstream%2Fgstreamer.git atscmux: send empty RRT / MGT / STT tables These are mandated by A/65, their absence gets flagged by stream analyzers. Users can of course provide filled up versions through the send_event API. --- diff --git a/gst/mpegtsmux/gstatscmux.c b/gst/mpegtsmux/gstatscmux.c index 732d8a6..0f7fb59 100644 --- a/gst/mpegtsmux/gstatscmux.c +++ b/gst/mpegtsmux/gstatscmux.c @@ -146,6 +146,22 @@ static TsMux * gst_atsc_mux_create_ts_mux (GstBaseTsMux * mpegtsmux) { TsMux *ret = ((GstBaseTsMuxClass *) parent_class)->create_ts_mux (mpegtsmux); + GstMpegtsAtscMGT *mgt; + GstMpegtsAtscSTT *stt; + GstMpegtsAtscRRT *rrt; + GstMpegtsSection *section; + + mgt = gst_mpegts_atsc_mgt_new (); + section = gst_mpegts_section_from_atsc_mgt (mgt); + tsmux_add_mpegts_si_section (ret, section); + + stt = gst_mpegts_atsc_stt_new (); + section = gst_mpegts_section_from_atsc_stt (stt); + tsmux_add_mpegts_si_section (ret, section); + + rrt = gst_mpegts_atsc_rrt_new (); + section = gst_mpegts_section_from_atsc_rrt (rrt); + tsmux_add_mpegts_si_section (ret, section); tsmux_set_new_stream_func (ret, (TsMuxNewStreamFunc) gst_atsc_mux_create_new_stream, mpegtsmux);