From aa26b5cbe3642a747da2c1c1583d69299299805d Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Thu, 13 Jun 2002 13:53:22 +0000 Subject: Added playlist shuffle menu option git-svn-id: svn://svn.rockbox.org/rockbox/trunk@986 a1c6a512-1295-4272-9138-f99709370657 --- apps/playlist.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'apps/playlist.c') 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 @@ playlist_info_t playlist; -int index_array[1000]; - char now_playing[256]; char* playlist_next(int type) @@ -138,9 +136,12 @@ void add_indices_to_playlist( playlist_info_t *playlist ) else if(store_index) { /* Store a new entry */ - DEBUGF("tune %d at position %d\n", playlist->amount, i+count); playlist->indices[ playlist->amount ] = i+count; playlist->amount++; + if ( playlist->amount >= MAX_PLAYLIST_SIZE ) { + close(fd); + return; + } store_index = 0; } -- cgit v1.2.3