diff options
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) | |||
612 | } | 612 | } |
613 | 613 | ||
614 | DEBUGF("Old ID3V2 length: %x\n", entry->id3v2len); | 614 | DEBUGF("Old ID3V2 length: %x\n", entry->id3v2len); |
615 | entry->id3v2len = bytecount; | 615 | /* Adjust the tag length only if there is a tag present */ |
616 | if(entry->id3v2len) | ||
617 | entry->id3v2len = bytecount; | ||
616 | DEBUGF("New ID3V2 length: %x\n", bytecount); | 618 | DEBUGF("New ID3V2 length: %x\n", bytecount); |
617 | 619 | ||
618 | return filetime; | 620 | return filetime; |