From 8d71ec9f389337be19266b9ec018e09b677115ab Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 26 May 2014 11:55:31 +0200 Subject: [PATCH] examples: Add support for DVB Bouquet Name parsing --- tests/examples/mpegts/ts-parser.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/examples/mpegts/ts-parser.c b/tests/examples/mpegts/ts-parser.c index 82ef55e2bf..192ce48b7e 100644 --- a/tests/examples/mpegts/ts-parser.c +++ b/tests/examples/mpegts/ts-parser.c @@ -247,6 +247,16 @@ dump_descriptors (GPtrArray * descriptors, guint spacing) case GST_MTS_DESC_DVB_CABLE_DELIVERY_SYSTEM: dump_cable_delivery_descriptor (desc, spacing + 2); break; + case GST_MTS_DESC_DVB_BOUQUET_NAME: + { + gchar *bouquet_name; + if (gst_mpegts_descriptor_parse_dvb_bouquet_name (desc, &bouquet_name)) { + g_printf ("%*s Bouquet Name Descriptor, bouquet_name:%s\n", spacing, + "", bouquet_name); + g_free (bouquet_name); + } + break; + } case GST_MTS_DESC_DTG_LOGICAL_CHANNEL: dump_logical_channel_descriptor (desc, spacing + 2); break;