From 24a5a03d27332f5eaa82beb2facce5b78e2ac6f3 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Thu, 2 Nov 2017 10:40:37 +0100 Subject: [PATCH] vorbistag: Fix previous comment We already NULL-ended the string, don't use the bogus cur_size --- gst-libs/gst/tag/gstvorbistag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/tag/gstvorbistag.c b/gst-libs/gst/tag/gstvorbistag.c index 041fe9870d..118ea2178d 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 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);