summaryrefslogtreecommitdiff
path: root/gst-libs/gst/mpegts
diff options
context:
space:
mode:
authorStefan Ringel <linuxtv@stefanringel.de>2014-05-28 16:47:53 +0200
committerEdward Hervey <bilboed@bilboed.com>2014-05-29 14:29:15 +0200
commit6a622a678e113fc6f560ff562468ab840e310659 (patch)
tree873f7606259c7586d70746e73b940f74c9ed99bd /gst-libs/gst/mpegts
parentac88f31ac78df7597fb8c46550a8e7245b0e6837 (diff)
downloadgstreamer-plugins-bad-6a622a678e113fc6f560ff562468ab840e310659.tar.gz
example: ts-parser: add parential rating descriptor
https://bugzilla.gnome.org/show_bug.cgi?id=730854
Diffstat (limited to 'gst-libs/gst/mpegts')
-rw-r--r--gst-libs/gst/mpegts/gst-dvb-descriptor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst-libs/gst/mpegts/gst-dvb-descriptor.c b/gst-libs/gst/mpegts/gst-dvb-descriptor.c
index 7a2332a29..2874e86d1 100644
--- a/gst-libs/gst/mpegts/gst-dvb-descriptor.c
+++ b/gst-libs/gst/mpegts/gst-dvb-descriptor.c
@@ -1166,6 +1166,7 @@ gst_mpegts_descriptor_parse_dvb_parental_rating (const GstMpegTsDescriptor
g_ptr_array_add (*rating, item);
memcpy (item->country_code, data, 3);
+ item->country_code[3] = 0;
data += 3;
if (g_strcmp0 (item->country_code, "BRA") == 0) {