diff options
author | Mark Arigo <markarigo@gmail.com> | 2006-07-21 20:15:01 +0000 |
---|---|---|
committer | Mark Arigo <markarigo@gmail.com> | 2006-07-21 20:15:01 +0000 |
commit | b50e8935e11881f5257e4aa31229345e48789315 (patch) | |
tree | 29c24fa9cdf8919e5b29ca694581b742915d0a69 /firmware/id3.c | |
parent | aaee4fb4a0827fa0afd4b5f18d85c66b3822f36c (diff) |
Re-enable parsing replaygain from ID3v2.4 TXXX fields since that's the default for foobar2000 0.9, however, give the RVA2 field priority
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10277 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/id3.c')
-rw-r--r-- | firmware/id3.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/id3.c b/firmware/id3.c index b3c09f2e6b..35e0517769 100644 --- a/firmware/id3.c +++ b/firmware/id3.c @@ -322,9 +322,9 @@ static int parseuser( struct mp3entry* entry, char* tag, int bufferpos ) int desc_len = strlen(tag); int value_len = 0; - /* Only parse TXXX replaygain tags if tag version < 2.4 */ - if (entry->id3version < ID3_VER_2_4 && - (tag - entry->id3v2buf + desc_len + 2) < bufferpos) { + /* Note: for ID3v2.4, parse_replaygain will not overwrite replaygain + values already parsed from RVA2 tags */ + if ((tag - entry->id3v2buf + desc_len + 2) < bufferpos) { /* At least part of the value was read, so we can safely try to * parse it */ |