mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
vorbistag: Check whether tag name is valid
In the same way we check before whether the content of the tag is UTF-8
This commit is contained in:
parent
7e28f6c076
commit
62081fe583
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue