forked from len0rd/rockbox
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];
|
char tstr[MAX_PATH];
|
||||||
DIR* dir;
|
DIR* dir;
|
||||||
struct dirent* entry;
|
struct dirent* entry;
|
||||||
struct mp3entry id3;
|
|
||||||
int fd;
|
|
||||||
|
|
||||||
char* ptr = rb->strrchr(selected_file, '/') + 1;
|
char* ptr = rb->strrchr(selected_file, '/') + 1;
|
||||||
int dirlen = (ptr - selected_file);
|
int dirlen = (ptr - selected_file);
|
||||||
|
@ -101,7 +99,8 @@ static bool file_properties(char* selected_file)
|
||||||
num_properties = 5;
|
num_properties = 5;
|
||||||
|
|
||||||
#if (CONFIG_CODEC == SWCODEC)
|
#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 (fd >= 0)
|
||||||
{
|
{
|
||||||
if (rb->get_metadata(&id3, fd, selected_file, false))
|
if (rb->get_metadata(&id3, fd, selected_file, false))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue