mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 05:31:15 +00:00
examples: Add support for DVB multilingual bouquet name descriptor
https://bugzilla.gnome.org/show_bug.cgi?id=728429
This commit is contained in:
parent
455c8271df
commit
86b78c040d
1 changed files with 22 additions and 0 deletions
|
@ -208,6 +208,23 @@ dump_multiligual_network_name (GstMpegTsDescriptor * desc, guint spacing)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
dump_multiligual_bouquet_name (GstMpegTsDescriptor * desc, guint spacing)
|
||||||
|
{
|
||||||
|
GPtrArray *items;
|
||||||
|
if (gst_mpegts_descriptor_parse_dvb_multilingual_bouquet_name (desc, &items)) {
|
||||||
|
guint i;
|
||||||
|
for (i = 0; i < items->len; i++) {
|
||||||
|
GstMpegTsDvbMultilingualBouquetNameItem *item =
|
||||||
|
g_ptr_array_index (items, i);
|
||||||
|
g_printf ("%*s item : %u\n", spacing, "", i);
|
||||||
|
g_printf ("%*s language_code : %s\n", spacing, "", item->language_code);
|
||||||
|
g_printf ("%*s bouguet_name : %s\n", spacing, "", item->bouquet_name);
|
||||||
|
}
|
||||||
|
g_ptr_array_unref (items);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
dump_iso_639_language (GstMpegTsDescriptor * desc, guint spacing)
|
dump_iso_639_language (GstMpegTsDescriptor * desc, guint spacing)
|
||||||
{
|
{
|
||||||
|
@ -295,6 +312,11 @@ dump_descriptors (GPtrArray * descriptors, guint spacing)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case GST_MTS_DESC_DVB_MULTILINGUAL_BOUQUET_NAME:
|
||||||
|
{
|
||||||
|
dump_multiligual_bouquet_name (desc, spacing + 2);
|
||||||
|
break;
|
||||||
|
}
|
||||||
case GST_MTS_DESC_DVB_MULTILINGUAL_NETWORK_NAME:
|
case GST_MTS_DESC_DVB_MULTILINGUAL_NETWORK_NAME:
|
||||||
{
|
{
|
||||||
dump_multiligual_network_name (desc, spacing + 2);
|
dump_multiligual_network_name (desc, spacing + 2);
|
||||||
|
|
Loading…
Reference in a new issue