mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
Moved getfilesize() to top
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1203 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
1575ee378c
commit
f186f46f5d
1 changed files with 1 additions and 3 deletions
|
|
@ -491,7 +491,7 @@ mp3info(struct mp3entry *entry, char *filename)
|
|||
memset(entry, 0, sizeof(struct mp3entry));
|
||||
|
||||
entry->title = NULL;
|
||||
|
||||
entry->filesize = getfilesize(fd);
|
||||
entry->id3v2len = getid3v2len(fd);
|
||||
if(HASID3V2(entry))
|
||||
setid3v2title(fd, entry);
|
||||
|
|
@ -501,8 +501,6 @@ mp3info(struct mp3entry *entry, char *filename)
|
|||
if(HASID3V1(entry) && !entry->title)
|
||||
setid3v1title(fd, entry);
|
||||
|
||||
entry->filesize = getfilesize(fd);
|
||||
|
||||
close(fd);
|
||||
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue