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
This commit is contained in:
Jesper Larsen 2014-02-22 16:41:22 +01:00 committed by Edward Hervey
parent 3bede97970
commit 3fe1608e83
2 changed files with 6 additions and 0 deletions

View file

@ -832,6 +832,8 @@ _parse_sdt (GstMpegTsSection * section)
data = section->data; data = section->data;
end = data + section->section_length; end = data + section->section_length;
sdt->transport_stream_id = section->subtable_extension;
/* Skip common fields */ /* Skip common fields */
data += 8; data += 8;

View file

@ -233,6 +233,9 @@ struct _GstMpegTsSDTService
/** /**
* GstMpegTsSDT: * 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 * @services: (element-type GstMpegTsSDTService): List of services
* *
* Service Description Table (EN 300 468) * Service Description Table (EN 300 468)
@ -242,6 +245,7 @@ struct _GstMpegTsSDT
{ {
guint16 original_network_id; guint16 original_network_id;
gboolean actual_ts; gboolean actual_ts;
guint16 transport_stream_id;
GPtrArray *services; GPtrArray *services;
}; };