diff options
author | Edward Hervey <edward@centricular.com> | 2017-11-02 08:18:26 +0100 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2017-12-01 10:02:03 +0100 |
commit | 0cbe7b66219bc769e1e235b8498b6503e0e1989c (patch) | |
tree | df038c57d9c1addd7946cf15e0e60f04e5d5f21f | |
parent | eb285d17966d651eab50670fbbd0e4a5c9f05b8d (diff) | |
download | gstreamer-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.c | 2 |
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); |