diff options
author | Stefan Ringel <linuxtv@stefanringel.de> | 2014-05-28 16:47:53 +0200 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2014-05-29 14:29:15 +0200 |
commit | 6a622a678e113fc6f560ff562468ab840e310659 (patch) | |
tree | 873f7606259c7586d70746e73b940f74c9ed99bd /tests | |
parent | ac88f31ac78df7597fb8c46550a8e7245b0e6837 (diff) | |
download | gstreamer-plugins-bad-6a622a678e113fc6f560ff562468ab840e310659.tar.gz |
example: ts-parser: add parential rating descriptor
https://bugzilla.gnome.org/show_bug.cgi?id=730854
Diffstat (limited to 'tests')
-rw-r--r-- | tests/examples/mpegts/ts-parser.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/examples/mpegts/ts-parser.c b/tests/examples/mpegts/ts-parser.c index 00435c619..86c53ee2f 100644 --- a/tests/examples/mpegts/ts-parser.c +++ b/tests/examples/mpegts/ts-parser.c @@ -630,6 +630,23 @@ dump_descriptors (GPtrArray * descriptors, guint spacing) case GST_MTS_DESC_DVB_CONTENT: dump_content (desc, spacing + 2); break; + case GST_MTS_DESC_DVB_PARENTAL_RATING: + { + GPtrArray *ratings; + guint j; + + if (gst_mpegts_descriptor_parse_dvb_parental_rating (desc, &ratings)) { + for (j = 0; j < ratings->len; j++) { + GstMpegTsDVBParentalRatingItem *item = + g_ptr_array_index (ratings, j); + g_printf ("%*s country_code : %s\n", spacing, "", + item->country_code); + g_printf ("%*s rating age : %d\n", spacing, "", item->rating); + } + g_ptr_array_unref (ratings); + } + break; + } case GST_MTS_DESC_ISO_639_LANGUAGE: dump_iso_639_language (desc, spacing + 2); break; |