summaryrefslogtreecommitdiff
path: root/apps/playlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/playlist.c')
-rw-r--r--apps/playlist.c22
1 files changed, 6 insertions, 16 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 48de9dd687..748c2ce528 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -38,22 +38,7 @@
38 38
39#include "lang.h" 39#include "lang.h"
40 40
41static struct playlist_info playlist={ 41static struct playlist_info playlist;
42 "", /* filename */
43 -1, /* fd */
44 0, /* dirlen */
45 {0}, /* indices[] */
46 0, /* index */
47 0, /* first_index */
48 0, /* seed */
49 0, /* amount */
50 false, /* in_ram */
51 {0}, /* queue_indices[] */
52 0, /* last_queue_index */
53 0, /* queue_index */
54 0, /* num_queued */
55 0 /* start_queue */
56};
57 42
58#define QUEUE_FILE ROCKBOX_DIR "/.queue_file" 43#define QUEUE_FILE ROCKBOX_DIR "/.queue_file"
59 44
@@ -65,6 +50,11 @@ static int playlist_end_pos = 0;
65 50
66static char now_playing[MAX_PATH+1]; 51static char now_playing[MAX_PATH+1];
67 52
53void playlist_init(void)
54{
55 playlist.fd = -1;
56}
57
68/* 58/*
69 * remove any files and indices associated with the playlist 59 * remove any files and indices associated with the playlist
70 */ 60 */