mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
init the playlist struct so that fd is -1 at startup, which then no longer
makes us close fd zero at startup. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3595 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
eae511030c
commit
4793f3b6de
1 changed files with 16 additions and 1 deletions
|
|
@ -38,7 +38,22 @@
|
|||
|
||||
#include "lang.h"
|
||||
|
||||
static struct playlist_info playlist;
|
||||
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 */
|
||||
};
|
||||
|
||||
#define QUEUE_FILE ROCKBOX_DIR "/.queue_file"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue