summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/playlist.c7
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 @@
40static struct playlist_info playlist; 40static 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
45static unsigned char playlist_buffer[PLAYLIST_BUFFER_SIZE]; 45static unsigned char* playlist_buffer = mp3buf;
46extern unsigned char mp3buf[],mp3end;
46static int playlist_end_pos = 0; 47static int playlist_end_pos = 0;
47 48
48static char now_playing[MAX_PATH+1]; 49static 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) {