From 4266fd443a4c51e029c61eea5dffe1a7ba98da37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=80ngel=20Farr=C3=A9?= Date: Wed, 8 Jul 2009 10:16:19 +0100 Subject: mpegtsparse: parse component tag --- gst/mpegdemux/mpegtspacketizer.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'gst/mpegdemux') 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); } -- cgit v1.2.1