mpegts: Add program_number to GstMpegTsPMT

This commit is contained in:
Jesper Larsen 2013-11-20 11:04:58 +01:00
parent dd449c38e6
commit fccfc76805
2 changed files with 4 additions and 1 deletions

View file

@ -547,7 +547,9 @@ _parse_pmt (GstMpegTsSection * section)
GST_DEBUG ("Parsing %d Program Map Table", section->subtable_extension);
/* Skip already parsed data */
/* Assign program number from subtable extenstion,
and skip already parsed data */
pmt->program_number = section->subtable_extension;
data += 8;
pmt->pcr_pid = GST_READ_UINT16_BE (data) & 0x1FFF;

View file

@ -339,6 +339,7 @@ struct _GstMpegTsPMTStream
struct _GstMpegTsPMT
{
guint16 pcr_pid;
guint16 program_number;
GPtrArray *descriptors;
GPtrArray *streams;