mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
mpegts: Add network_id to GstMpegTsNIT
The network_id is stored in the subtable extension. Make a field in the GstMpegTsNIT for better code readability
This commit is contained in:
parent
8f429c6c6e
commit
4632ccd5be
2 changed files with 4 additions and 3 deletions
|
@ -489,7 +489,8 @@ _parse_nit (GstMpegTsSection * section)
|
|||
data = section->data;
|
||||
end = data + section->section_length;
|
||||
|
||||
/* Skip already parsed data */
|
||||
/* Set network id, and skip the rest of what is already parsed */
|
||||
nit->network_id = section->subtable_extension;
|
||||
data += 8;
|
||||
|
||||
nit->actual_network = section->table_id == 0x40;
|
||||
|
|
|
@ -145,17 +145,17 @@ struct _GstMpegTsNITStream
|
|||
/**
|
||||
* GstMpegTsNIT:
|
||||
* @actual_network: Whether this NIT corresponds to the actual stream
|
||||
* @network_id: ID of the network that this NIT describes
|
||||
* @descriptors: (element-type GstMpegTsDescriptor): the global descriptors
|
||||
* @streams: (element-type GstMpegTsNITStream): the streams
|
||||
*
|
||||
* Network Information Table (ISO/IEC 13818-1 / EN 300 468)
|
||||
*
|
||||
* The network_id is contained in the subtable_extension field of the
|
||||
* container #GstMpegTsSection.
|
||||
*/
|
||||
struct _GstMpegTsNIT
|
||||
{
|
||||
gboolean actual_network;
|
||||
guint16 network_id;
|
||||
|
||||
GPtrArray *descriptors;
|
||||
|
||||
|
|
Loading…
Reference in a new issue