From 1a6cd35c5044f41cfe2293d5aa5c85e035a9860b Mon Sep 17 00:00:00 2001 From: Zaheer Merali Date: Wed, 15 Jul 2009 18:27:39 +0100 Subject: mpegtsparse: add component tag to structure for component message --- gst/mpegdemux/mpegtspacketizer.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gst/mpegdemux/mpegtspacketizer.c') diff --git a/gst/mpegdemux/mpegtspacketizer.c b/gst/mpegdemux/mpegtspacketizer.c index 5ed71f0c..d22b0051 100644 --- a/gst/mpegdemux/mpegtspacketizer.c +++ b/gst/mpegdemux/mpegtspacketizer.c @@ -1787,7 +1787,8 @@ mpegts_packetizer_parse_eit (MpegTSPacketizer * packetizer, break; } component = gst_structure_new ("audio", "type", G_TYPE_STRING, - comptype, NULL); + comptype, "tag", G_TYPE_INT, + DESC_DVB_COMPONENT_tag (comp_descriptor), NULL); break; case 0x03: /* subtitles/teletext/vbi */ comptype = "reserved"; @@ -1827,7 +1828,8 @@ mpegts_packetizer_parse_eit (MpegTSPacketizer * packetizer, break; } component = gst_structure_new ("teletext", "type", G_TYPE_STRING, - comptype, NULL); + comptype, "tag", G_TYPE_INT, + DESC_DVB_COMPONENT_tag (comp_descriptor), NULL); break; } if (component) { -- cgit v1.2.1 From 3d44d9263023bba698f7f2d17775c26ae4873ecd Mon Sep 17 00:00:00 2001 From: Zaheer Merali Date: Fri, 17 Jul 2009 09:36:15 +0100 Subject: mpegtsparse: add component tag to the video component structure in eit --- gst/mpegdemux/mpegtspacketizer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gst/mpegdemux/mpegtspacketizer.c') diff --git a/gst/mpegdemux/mpegtspacketizer.c b/gst/mpegdemux/mpegtspacketizer.c index d22b0051..da53a926 100644 --- a/gst/mpegdemux/mpegtspacketizer.c +++ b/gst/mpegdemux/mpegtspacketizer.c @@ -1749,7 +1749,9 @@ mpegts_packetizer_parse_eit (MpegTSPacketizer * packetizer, break; } component = gst_structure_new ("video", "high-definition", - G_TYPE_BOOLEAN, TRUE, "frequency", G_TYPE_INT, freq, NULL); + G_TYPE_BOOLEAN, TRUE, "frequency", G_TYPE_INT, freq, + "tag", G_TYPE_INT, DESC_DVB_COMPONENT_tag (comp_descriptor), + NULL); if (widescreen == 0) { gst_structure_set (component, "aspect-ratio", G_TYPE_STRING, "4:3", NULL); -- cgit v1.2.1