From a24bd9a894c1d8594e99f95e470cbd8296e5b3d2 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Wed, 18 Sep 2002 13:59:38 +0000 Subject: Another strike in the battle against glitches between tracks git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2326 a1c6a512-1295-4272-9138-f99709370657 --- firmware/id3.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'firmware') 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; -- cgit v1.2.3