Commit 12065d08 authored by Josh Coalson's avatar Josh Coalson

fix bug in FLAC_plugin__tags_get_tag_utf8(), it was returning the whole entry...

fix bug in FLAC_plugin__tags_get_tag_utf8(), it was returning the whole entry instead of just the value
parent 7ffd7e4a
......@@ -226,7 +226,7 @@ void FLAC_plugin__tags_destroy(FLAC__StreamMetadata **tags)
const char *FLAC_plugin__tags_get_tag_utf8(const FLAC__StreamMetadata *tags, const char *name)
{
const int i = FLAC__metadata_object_vorbiscomment_find_entry_from(tags, /*offset=*/0, name);
return (i < 0? 0 : tags->data.vorbis_comment.comments[i].entry);
return (i < 0? 0 : strchr(tags->data.vorbis_comment.comments[i].entry, '=')+1);
}
FLAC__uint16 *FLAC_plugin__tags_get_tag_ucs2(const FLAC__StreamMetadata *tags, const char *name)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment