summaryrefslogtreecommitdiff
path: root/apps/playlist.c
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2003-04-24 17:31:36 +0000
committerBjörn Stenberg <bjorn@haxx.se>2003-04-24 17:31:36 +0000
commit7bb746b4fe2dbac87ca96773b3408d11ffb5006e (patch)
tree3b0e14140f981f3aa4592715d9628efeeec61bcd /apps/playlist.c
parent233b7f3fb2e3f6911013a392ff71370b93310c69 (diff)
downloadrockbox-7bb746b4fe2dbac87ca96773b3408d11ffb5006e.zip
rockbox-7bb746b4fe2dbac87ca96773b3408d11ffb5006e.tar.gz
rockbox-7bb746b4fe2dbac87ca96773b3408d11ffb5006e.tar.bz2
rockbox-7bb746b4fe2dbac87ca96773b3408d11ffb5006e.tar.xz
Changed to runtime playlist initialization
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3602 a1c6a512-1295-4272-9138-f99709370657
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 48de9dd..748c2ce 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -38,22 +38,7 @@
#include "lang.h"
-static struct playlist_info playlist={
- "", /* filename */
- -1, /* fd */
- 0, /* dirlen */
- {0}, /* indices[] */
- 0, /* index */
- 0, /* first_index */
- 0, /* seed */
- 0, /* amount */
- false, /* in_ram */
- {0}, /* queue_indices[] */
- 0, /* last_queue_index */
- 0, /* queue_index */
- 0, /* num_queued */
- 0 /* start_queue */
-};
+static struct playlist_info playlist;
#define QUEUE_FILE ROCKBOX_DIR "/.queue_file"
@@ -65,6 +50,11 @@ static int playlist_end_pos = 0;
static char now_playing[MAX_PATH+1];
+void playlist_init(void)
+{
+ playlist.fd = -1;
+}
+
/*
* remove any files and indices associated with the playlist
*/