projects
/
platform
/
upstream
/
flac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ffd7e4
)
fix bug in FLAC_plugin__tags_get_tag_utf8(), it was returning the whole entry instead...
author
Josh Coalson
<jcoalson@users.sourceforce.net>
Tue, 1 Feb 2005 04:43:50 +0000
(
04:43
+0000)
committer
Josh Coalson
<jcoalson@users.sourceforce.net>
Tue, 1 Feb 2005 04:43:50 +0000
(
04:43
+0000)
src/plugin_common/tags.c
patch
|
blob
|
history
diff --git
a/src/plugin_common/tags.c
b/src/plugin_common/tags.c
index
ab66b0d
..
8c3008b
100644
(file)
--- a/
src/plugin_common/tags.c
+++ b/
src/plugin_common/tags.c
@@
-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)