mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
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.
This commit is contained in:
parent
5d41740ff6
commit
fdfd4600c1
1 changed files with 16 additions and 0 deletions
|
@ -146,6 +146,22 @@ static TsMux *
|
||||||
gst_atsc_mux_create_ts_mux (GstBaseTsMux * mpegtsmux)
|
gst_atsc_mux_create_ts_mux (GstBaseTsMux * mpegtsmux)
|
||||||
{
|
{
|
||||||
TsMux *ret = ((GstBaseTsMuxClass *) parent_class)->create_ts_mux (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,
|
tsmux_set_new_stream_func (ret,
|
||||||
(TsMuxNewStreamFunc) gst_atsc_mux_create_new_stream, mpegtsmux);
|
(TsMuxNewStreamFunc) gst_atsc_mux_create_new_stream, mpegtsmux);
|
||||||
|
|
Loading…
Reference in a new issue