vorbistag: Fix previous comment

We already NULL-ended the string, don't use the bogus cur_size
This commit is contained in:
Edward Hervey 2017-11-02 10:40:37 +01:00
parent 6c749f75a5
commit 24a5a03d27

View file

@ -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 if (g_utf8_validate (cur, cur_size, NULL)) {
} else if (g_utf8_validate (cur, -1, NULL)) {
gst_vorbis_tag_add (list, cur, value);
}
g_free (cur);