Don't waste time loading v1 tag if a v2 tag was found.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2916 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2002-12-03 15:38:39 +00:00
parent d98bba864c
commit d1f8001984

View file

@ -737,9 +737,12 @@ bool mp3info(struct mp3entry *entry, char *filename)
setid3v2title(fd, entry);
entry->length = getsonglength(fd, entry);
entry->id3v1len = getid3v1len(fd);
if(entry->id3v1len && !entry->title)
setid3v1title(fd, entry);
/* only seek to end of file if no id3v2 tags were found */
if (!entry->id3v2len) {
entry->id3v1len = getid3v1len(fd);
if(entry->id3v1len && !entry->title)
setid3v1title(fd, entry);
}
close(fd);