diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-06-13 13:53:22 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-06-13 13:53:22 +0000 |
commit | aa26b5cbe3642a747da2c1c1583d69299299805d (patch) | |
tree | e4a5cb8f9fd8c7134ec1ac9417b54606a07cd944 /apps/playlist.c | |
parent | 16c3c127ba0ad0b81cfab928e5119dfd39fbbecb (diff) | |
download | rockbox-aa26b5cbe3642a747da2c1c1583d69299299805d.tar.gz rockbox-aa26b5cbe3642a747da2c1c1583d69299299805d.zip |
Added playlist shuffle menu option
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@986 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playlist.c')
-rw-r--r-- | apps/playlist.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index 85d72dc57f..339964182b 100644 --- a/apps/playlist.c +++ b/apps/playlist.c | |||
@@ -30,8 +30,6 @@ | |||
30 | 30 | ||
31 | playlist_info_t playlist; | 31 | playlist_info_t playlist; |
32 | 32 | ||
33 | int index_array[1000]; | ||
34 | |||
35 | char now_playing[256]; | 33 | char now_playing[256]; |
36 | 34 | ||
37 | char* playlist_next(int type) | 35 | char* playlist_next(int type) |
@@ -138,9 +136,12 @@ void add_indices_to_playlist( playlist_info_t *playlist ) | |||
138 | else if(store_index) | 136 | else if(store_index) |
139 | { | 137 | { |
140 | /* Store a new entry */ | 138 | /* Store a new entry */ |
141 | DEBUGF("tune %d at position %d\n", playlist->amount, i+count); | ||
142 | playlist->indices[ playlist->amount ] = i+count; | 139 | playlist->indices[ playlist->amount ] = i+count; |
143 | playlist->amount++; | 140 | playlist->amount++; |
141 | if ( playlist->amount >= MAX_PLAYLIST_SIZE ) { | ||
142 | close(fd); | ||
143 | return; | ||
144 | } | ||
144 | 145 | ||
145 | store_index = 0; | 146 | store_index = 0; |
146 | } | 147 | } |