From bec1afada554b4624d0ef9b43b3443d1f0583cf3 Mon Sep 17 00:00:00 2001 From: Tomas Salfischberger Date: Thu, 23 Jun 2005 16:27:15 +0000 Subject: Make resume work with manually shuffled playlists (idea by hardeep on IRC) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6843 a1c6a512-1295-4272-9138-f99709370657 --- apps/onplay.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'apps') diff --git a/apps/onplay.c b/apps/onplay.c index 7655a8e075..e01dc60f5b 100644 --- a/apps/onplay.c +++ b/apps/onplay.c @@ -136,12 +136,8 @@ static bool list_viewers(void) static bool shuffle_playlist(void) { - int seed, index; - - seed = playlist_get_seed(NULL); - index = playlist_get_first_index(NULL); - - playlist_shuffle(seed, index); + playlist_sort(NULL, true); + playlist_randomise(NULL, current_tick, true); return false; } -- cgit v1.2.3