From fccfc76805beb7e467267eaed231308f7be98c31 Mon Sep 17 00:00:00 2001 From: Jesper Larsen Date: Wed, 20 Nov 2013 11:04:58 +0100 Subject: [PATCH] mpegts: Add program_number to GstMpegTsPMT --- gst-libs/gst/mpegts/gstmpegtssection.c | 4 +++- gst-libs/gst/mpegts/gstmpegtssection.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/mpegts/gstmpegtssection.c b/gst-libs/gst/mpegts/gstmpegtssection.c index 334ff57e31..c98cddf971 100644 --- a/gst-libs/gst/mpegts/gstmpegtssection.c +++ b/gst-libs/gst/mpegts/gstmpegtssection.c @@ -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; diff --git a/gst-libs/gst/mpegts/gstmpegtssection.h b/gst-libs/gst/mpegts/gstmpegtssection.h index 72d59dc041..71dcec212e 100644 --- a/gst-libs/gst/mpegts/gstmpegtssection.h +++ b/gst-libs/gst/mpegts/gstmpegtssection.h @@ -339,6 +339,7 @@ struct _GstMpegTsPMTStream struct _GstMpegTsPMT { guint16 pcr_pid; + guint16 program_number; GPtrArray *descriptors; GPtrArray *streams;