From ac88f31ac78df7597fb8c46550a8e7245b0e6837 Mon Sep 17 00:00:00 2001 From: Stefan Ringel Date: Wed, 28 May 2014 16:47:28 +0200 Subject: [PATCH] example: ts-parser: add ca iddentifier descriptor https://bugzilla.gnome.org/show_bug.cgi?id=730854 --- tests/examples/mpegts/ts-parser.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/examples/mpegts/ts-parser.c b/tests/examples/mpegts/ts-parser.c index 69a18b5..00435c6 100644 --- a/tests/examples/mpegts/ts-parser.c +++ b/tests/examples/mpegts/ts-parser.c @@ -613,6 +613,20 @@ dump_descriptors (GPtrArray * descriptors, guint spacing) } break; } + case GST_MTS_DESC_DVB_CA_IDENTIFIER: + { + GArray *list; + guint j; + guint16 ca_id; + if (gst_mpegts_descriptor_parse_dvb_ca_identifier (desc, &list)) { + for (j = 0; j < list->len; j++) { + ca_id = g_array_index (list, guint16, j); + g_printf ("%*s CA Identifier : 0x%04x\n", spacing, "", ca_id); + } + g_array_unref (list); + } + break; + } case GST_MTS_DESC_DVB_CONTENT: dump_content (desc, spacing + 2); break; -- 2.7.4