From fa1eb09520058d3c42d0420ca88cb6cd70d602a3 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Wed, 28 May 2014 16:34:08 -0300 Subject: [PATCH] mpegts: atsc: add missing field to ETT table Set the subtable_extension as ett_table_id_extension for ETT tables as it is used by it https://bugzilla.gnome.org/show_bug.cgi?id=730435 --- gst-libs/gst/mpegts/gst-atsc-section.c | 2 ++ gst-libs/gst/mpegts/gst-atsc-section.h | 1 + tests/examples/mpegts/ts-parser.c | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/mpegts/gst-atsc-section.c b/gst-libs/gst/mpegts/gst-atsc-section.c index 95de50f4f3..87bc4bfb76 100644 --- a/gst-libs/gst/mpegts/gst-atsc-section.c +++ b/gst-libs/gst/mpegts/gst-atsc-section.c @@ -776,6 +776,8 @@ _parse_ett (GstMpegTsSection * section) data = section->data; end = data + section->section_length; + ett->ett_table_id_extension = section->subtable_extension; + /* Skip already parsed data */ data += 8; diff --git a/gst-libs/gst/mpegts/gst-atsc-section.h b/gst-libs/gst/mpegts/gst-atsc-section.h index 8d9db071ce..22fb4cb770 100644 --- a/gst-libs/gst/mpegts/gst-atsc-section.h +++ b/gst-libs/gst/mpegts/gst-atsc-section.h @@ -249,6 +249,7 @@ typedef struct _GstMpegTsAtscETT GstMpegTsAtscETT; */ struct _GstMpegTsAtscETT { + guint16 ett_table_id_extension; guint16 protocol_version; guint32 etm_id; diff --git a/tests/examples/mpegts/ts-parser.c b/tests/examples/mpegts/ts-parser.c index 173bcb4bac..bf8c98cf6c 100644 --- a/tests/examples/mpegts/ts-parser.c +++ b/tests/examples/mpegts/ts-parser.c @@ -666,7 +666,7 @@ dump_ett (GstMpegTsSection * section) g_assert (ett); - g_printf (" service_id : 0x%04x\n", section->subtable_extension); + g_printf (" ett_table_id_ext : 0x%04x\n", ett->ett_table_id_extension); g_printf (" protocol_version : 0x%04x\n", ett->protocol_version); g_printf (" etm_id : 0x%04x\n", ett->etm_id);