From 7bb746b4fe2dbac87ca96773b3408d11ffb5006e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Stenberg?= Date: Thu, 24 Apr 2003 17:31:36 +0000 Subject: Changed to runtime playlist initialization git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3602 a1c6a512-1295-4272-9138-f99709370657 --- apps/playlist.c | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) (limited to 'apps/playlist.c') 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 */ -- cgit v1.1