diff options
author | Qball Cow <qball@qballcow.nl> | 2006-01-21 17:52:14 +0000 |
---|---|---|
committer | Qball Cow <qball@qballcow.nl> | 2006-01-21 17:52:14 +0000 |
commit | 03c60a28e23c9d99fb1b1503b9fc30808687bc42 (patch) | |
tree | cc444a2b9d54d30c67d105dc64353a7ae368b4c1 | |
parent | cc679ab62478fcd1124dc16e70b4b30b56683092 (diff) | |
download | mpd-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
-rw-r--r-- | src/inputPlugins/mp3_plugin.c | 5 |
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) { |