diff options
author | Edward Hervey <bilboed@bilboed.com> | 2017-11-02 10:40:37 +0100 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2017-12-01 10:02:03 +0100 |
commit | bcce26eb7e5177d494d382cdcc5787d0b3beddd1 (patch) | |
tree | 0d0d80726c4b1675d6a0c229d4f7fd2070e3ac59 | |
parent | 13ff485d6f927eaa2cd7e5eada7265467300de13 (diff) | |
download | gstreamer-plugins-base-bcce26eb7e5177d494d382cdcc5787d0b3beddd1.tar.gz |
vorbistag: Fix previous comment
We already NULL-ended the string, don't use the bogus cur_size
-rw-r--r-- | gst-libs/gst/tag/gstvorbistag.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/tag/gstvorbistag.c b/gst-libs/gst/tag/gstvorbistag.c index 041fe9870..118ea2178 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); |