diff options
author | Miguel Àngel Farré <miquel.farre@gmail.com> | 2009-07-08 10:16:19 +0100 |
---|---|---|
committer | Zaheer Abbas Merali <zaheerabbas@merali.org> | 2009-07-08 10:34:02 +0100 |
commit | 4266fd443a4c51e029c61eea5dffe1a7ba98da37 (patch) | |
tree | b0ad7300b3237ee9c59f57de8a278985cf20a13a /gst | |
parent | c90fccd98650561ffe512b26faafc348155104fb (diff) | |
download | gst-plugins-bad-4266fd443a4c51e029c61eea5dffe1a7ba98da37.tar.gz gst-plugins-bad-4266fd443a4c51e029c61eea5dffe1a7ba98da37.tar.bz2 gst-plugins-bad-4266fd443a4c51e029c61eea5dffe1a7ba98da37.zip |
mpegtsparse: parse component tag
Diffstat (limited to 'gst')
-rw-r--r-- | gst/mpegdemux/mpegtspacketizer.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gst/mpegdemux/mpegtspacketizer.c b/gst/mpegdemux/mpegtspacketizer.c index f7e55896..3e0c7e67 100644 --- a/gst/mpegdemux/mpegtspacketizer.c +++ b/gst/mpegdemux/mpegtspacketizer.c @@ -542,7 +542,13 @@ mpegts_packetizer_parse_pmt (MpegTSPacketizer * packetizer, gst_structure_set (stream_info, "carousel-id", G_TYPE_UINT, carousel_id, NULL); } - + desc_data = gst_mpeg_descriptor_find (desc, DESC_DVB_STREAM_IDENTIFIER); + if (desc_data) { + guint8 component_tag; + component_tag = DESC_DVB_STREAM_IDENTIFIER_component_tag (desc_data); + gst_structure_set (stream_info, "component-tag", G_TYPE_UINT, + component_tag, NULL); + } gst_mpeg_descriptor_free (desc); } |