diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-09-18 13:59:38 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-09-18 13:59:38 +0000 |
commit | a24bd9a894c1d8594e99f95e470cbd8296e5b3d2 (patch) | |
tree | 75e991a160533c1346609216fe5f4c5e48f8d70d /firmware | |
parent | b3bb0760852311aca9bd83db3ad99b1bf94b6fba (diff) |
Another strike in the battle against glitches between tracks
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2326 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/id3.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/id3.c b/firmware/id3.c index 30e74dcdc3..c7d8f762af 100644 --- a/firmware/id3.c +++ b/firmware/id3.c @@ -612,7 +612,9 @@ static int getsonglength(int fd, struct mp3entry *entry) } DEBUGF("Old ID3V2 length: %x\n", entry->id3v2len); - entry->id3v2len = bytecount; + /* Adjust the tag length only if there is a tag present */ + if(entry->id3v2len) + entry->id3v2len = bytecount; DEBUGF("New ID3V2 length: %x\n", bytecount); return filetime; |