diff options
Diffstat (limited to 'apps/playlist.c')
-rw-r--r-- | apps/playlist.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index f6dda977f4..61432eb851 100644 --- a/apps/playlist.c +++ b/apps/playlist.c | |||
@@ -1452,7 +1452,6 @@ static int get_next_dir(char *dir, bool is_forward, bool recursion) | |||
1452 | int result = -1; | 1452 | int result = -1; |
1453 | char *start_dir = NULL; | 1453 | char *start_dir = NULL; |
1454 | bool exit = false; | 1454 | bool exit = false; |
1455 | int i; | ||
1456 | struct tree_context* tc = tree_get_context(); | 1455 | struct tree_context* tc = tree_get_context(); |
1457 | int saved_dirfilter = *(tc->dirfilter); | 1456 | int saved_dirfilter = *(tc->dirfilter); |
1458 | 1457 | ||
@@ -1472,7 +1471,7 @@ static int get_next_dir(char *dir, bool is_forward, bool recursion) | |||
1472 | exit = true; | 1471 | exit = true; |
1473 | while (!exit) | 1472 | while (!exit) |
1474 | { | 1473 | { |
1475 | i = rand()%folder_count; | 1474 | int i = rand()%folder_count; |
1476 | lseek(fd,sizeof(int) + (MAX_PATH*i),SEEK_SET); | 1475 | lseek(fd,sizeof(int) + (MAX_PATH*i),SEEK_SET); |
1477 | read(fd,buffer,MAX_PATH); | 1476 | read(fd,buffer,MAX_PATH); |
1478 | if (check_subdir_for_music(buffer, "", false) ==0) | 1477 | if (check_subdir_for_music(buffer, "", false) ==0) |