summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorStefan Ringel <linuxtv@stefanringel.de>2014-05-28 16:47:28 +0200
committerEdward Hervey <bilboed@bilboed.com>2014-05-29 14:29:15 +0200
commitac88f31ac78df7597fb8c46550a8e7245b0e6837 (patch)
treef9d0a42d51ae474a3359f8fb60293793636192ea /tests
parent20410a70f5b7811fc38ad3814f6f135bbeea40a3 (diff)
downloadgstreamer-plugins-bad-ac88f31ac78df7597fb8c46550a8e7245b0e6837.tar.gz
example: ts-parser: add ca iddentifier descriptor
https://bugzilla.gnome.org/show_bug.cgi?id=730854
Diffstat (limited to 'tests')
-rw-r--r--tests/examples/mpegts/ts-parser.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/examples/mpegts/ts-parser.c b/tests/examples/mpegts/ts-parser.c
index 69a18b5a4..00435c619 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;