summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <edward@centricular.com>2017-11-02 08:18:26 +0100
committerEdward Hervey <bilboed@bilboed.com>2017-12-01 10:02:03 +0100
commit0cbe7b66219bc769e1e235b8498b6503e0e1989c (patch)
treedf038c57d9c1addd7946cf15e0e60f04e5d5f21f
parenteb285d17966d651eab50670fbbd0e4a5c9f05b8d (diff)
downloadgstreamer-plugins-base-0cbe7b66219bc769e1e235b8498b6503e0e1989c.tar.gz
vorbistag: Check whether tag name is valid
In the same way we check before whether the content of the tag is UTF-8
-rw-r--r--gst-libs/gst/tag/gstvorbistag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/tag/gstvorbistag.c b/gst-libs/gst/tag/gstvorbistag.c
index 7ec4fb26c..041fe9870 100644
--- a/gst-libs/gst/tag/gstvorbistag.c
+++ b/gst-libs/gst/tag/gstvorbistag.c
@@ -480,7 +480,7 @@ gst_tag_list_from_vorbiscomment (const guint8 * data, gsize size,
gst_vorbis_tag_add_coverart (list, value, value_len);
} else if (g_ascii_strcasecmp (cur, "METADATA_BLOCK_PICTURE") == 0) {
gst_vorbis_tag_add_metadata_block_picture (list, value, value_len);
- } else {
+ } else if (g_utf8_validate (cur, cur_size, NULL)) {
gst_vorbis_tag_add (list, cur, value);
}
g_free (cur);