aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQball Cow <qball@qballcow.nl>2006-01-21 17:52:14 +0000
committerQball Cow <qball@qballcow.nl>2006-01-21 17:52:14 +0000
commit03c60a28e23c9d99fb1b1503b9fc30808687bc42 (patch)
treecc444a2b9d54d30c67d105dc64353a7ae368b4c1
parentcc679ab62478fcd1124dc16e70b4b30b56683092 (diff)
downloadmpd-03c60a28e23c9d99fb1b1503b9fc30808687bc42.tar.gz
mpd-03c60a28e23c9d99fb1b1503b9fc30808687bc42.tar.xz
mpd-03c60a28e23c9d99fb1b1503b9fc30808687bc42.zip
fix for mp3 replaygaine
git-svn-id: https://svn.musicpd.org/mpd/trunk@3852 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/inputPlugins/mp3_plugin.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/inputPlugins/mp3_plugin.c b/src/inputPlugins/mp3_plugin.c
index 8d2615c4a..0657f25b1 100644
--- a/src/inputPlugins/mp3_plugin.c
+++ b/src/inputPlugins/mp3_plugin.c
@@ -219,9 +219,7 @@ void mp3_getReplayGainInfo(struct id3_tag * tag, ReplayGainInfo ** infoPtr) {
if(*infoPtr) freeReplayGainInfo(*infoPtr);
*infoPtr = newReplayGainInfo();
- frame = id3_tag_findframe(tag, "TXXX", 0);
-
- for(i=1;frame;i++) {
+ for(i=0;(frame = id3_tag_findframe(tag, "TXXX", i));i++) {
if(frame->nfields < 3) continue;
key = (char *) id3_ucs4_latin1duplicate(id3_field_getstring(&frame->fields[1]));
@@ -247,7 +245,6 @@ void mp3_getReplayGainInfo(struct id3_tag * tag, ReplayGainInfo ** infoPtr) {
free(key);
free(value);
- frame = id3_tag_findframe(tag, "TXXX", i);
}
if(!found) {