vorbistag: Fix previous comment
authorEdward Hervey <bilboed@bilboed.com>
Thu, 2 Nov 2017 09:40:37 +0000 (10:40 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Thu, 2 Nov 2017 09:43:02 +0000 (10:43 +0100)
We already NULL-ended the string, don't use the bogus cur_size

gst-libs/gst/tag/gstvorbistag.c

index 041fe98..118ea21 100644 (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);