projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e28f6c
)
vorbistag: Check whether tag name is valid
author
Edward Hervey
<edward@centricular.com>
Thu, 2 Nov 2017 07:18:26 +0000
(08:18 +0100)
committer
Edward Hervey
<bilboed@bilboed.com>
Thu, 2 Nov 2017 07:19:13 +0000
(08:19 +0100)
In the same way we check before whether the content of the tag
is UTF-8
gst-libs/gst/tag/gstvorbistag.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/tag/gstvorbistag.c
b/gst-libs/gst/tag/gstvorbistag.c
index
7ec4fb2
..
041fe98
100644
(file)
--- 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);