Hopefully green this time (move the variable declarations inside the #if block).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14331 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
adb64bbb9b
commit
dc1cb3cfbb
1 changed files with 2 additions and 3 deletions
|
@ -69,8 +69,6 @@ static bool file_properties(char* selected_file)
|
|||
char tstr[MAX_PATH];
|
||||
DIR* dir;
|
||||
struct dirent* entry;
|
||||
struct mp3entry id3;
|
||||
int fd;
|
||||
|
||||
char* ptr = rb->strrchr(selected_file, '/') + 1;
|
||||
int dirlen = (ptr - selected_file);
|
||||
|
@ -101,7 +99,8 @@ static bool file_properties(char* selected_file)
|
|||
num_properties = 5;
|
||||
|
||||
#if (CONFIG_CODEC == SWCODEC)
|
||||
fd = rb->open(selected_file, O_RDONLY);
|
||||
struct mp3entry id3;
|
||||
int fd = rb->open(selected_file, O_RDONLY);
|
||||
if (fd >= 0)
|
||||
{
|
||||
if (rb->get_metadata(&id3, fd, selected_file, false))
|
||||
|
|
Loading…
Reference in a new issue