diff options
-rw-r--r-- | apps/playlist.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index 78b601eff3..c511629944 100644 --- a/apps/playlist.c +++ b/apps/playlist.c | |||
@@ -40,9 +40,10 @@ | |||
40 | static struct playlist_info playlist; | 40 | static struct playlist_info playlist; |
41 | 41 | ||
42 | #define QUEUE_FILE ROCKBOX_DIR "/.queue_file" | 42 | #define QUEUE_FILE ROCKBOX_DIR "/.queue_file" |
43 | #define PLAYLIST_BUFFER_SIZE (AVERAGE_FILENAME_LENGTH*MAX_FILES_IN_DIR) | 43 | #define PLAYLIST_BUFFER_SIZE (&mp3end - &mp3buf[0]) |
44 | 44 | ||
45 | static unsigned char playlist_buffer[PLAYLIST_BUFFER_SIZE]; | 45 | static unsigned char* playlist_buffer = mp3buf; |
46 | extern unsigned char mp3buf[],mp3end; | ||
46 | static int playlist_end_pos = 0; | 47 | static int playlist_end_pos = 0; |
47 | 48 | ||
48 | static char now_playing[MAX_PATH+1]; | 49 | static char now_playing[MAX_PATH+1]; |
@@ -655,6 +656,8 @@ void add_indices_to_playlist(void) | |||
655 | 656 | ||
656 | store_index = true; | 657 | store_index = true; |
657 | 658 | ||
659 | mpeg_stop(); | ||
660 | |||
658 | while(1) | 661 | while(1) |
659 | { | 662 | { |
660 | if(playlist.in_ram) { | 663 | if(playlist.in_ram) { |