From 3fe1608e83b3e9aeec608590aac2ebaf57afa038 Mon Sep 17 00:00:00 2001 From: Jesper Larsen Date: Sat, 22 Feb 2014 16:41:22 +0100 Subject: [PATCH] mpegts: Add transport_stream_id to GstMpegTsSDT The transport_stream_id is contained in the subtable extension. Introduce a variable for readability. https://bugzilla.gnome.org/show_bug.cgi?id=724981 --- gst-libs/gst/mpegts/gst-dvb-section.c | 2 ++ gst-libs/gst/mpegts/gst-dvb-section.h | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/gst-libs/gst/mpegts/gst-dvb-section.c b/gst-libs/gst/mpegts/gst-dvb-section.c index f5940adcfe..c72f8ec827 100644 --- a/gst-libs/gst/mpegts/gst-dvb-section.c +++ b/gst-libs/gst/mpegts/gst-dvb-section.c @@ -832,6 +832,8 @@ _parse_sdt (GstMpegTsSection * section) data = section->data; end = data + section->section_length; + sdt->transport_stream_id = section->subtable_extension; + /* Skip common fields */ data += 8; diff --git a/gst-libs/gst/mpegts/gst-dvb-section.h b/gst-libs/gst/mpegts/gst-dvb-section.h index b2c6ea8fdd..ed3b91c92f 100644 --- a/gst-libs/gst/mpegts/gst-dvb-section.h +++ b/gst-libs/gst/mpegts/gst-dvb-section.h @@ -233,6 +233,9 @@ struct _GstMpegTsSDTService /** * GstMpegTsSDT: + * @original_network_id: Network ID of the originating delivery system + * @actual_ts: True if the table describes this transport stream + * @transport_stream_id: ID of this transport stream * @services: (element-type GstMpegTsSDTService): List of services * * Service Description Table (EN 300 468) @@ -242,6 +245,7 @@ struct _GstMpegTsSDT { guint16 original_network_id; gboolean actual_ts; + guint16 transport_stream_id; GPtrArray *services; };