summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorTomas Salfischberger <tomas@rockbox.org>2005-06-23 16:27:15 +0000
committerTomas Salfischberger <tomas@rockbox.org>2005-06-23 16:27:15 +0000
commitbec1afada554b4624d0ef9b43b3443d1f0583cf3 (patch)
treea6cdf040918ceb568962c7348fe75348bd4c619d /apps
parent8fd0378c6fff3297e106250f7235839068def7f7 (diff)
downloadrockbox-bec1afada554b4624d0ef9b43b3443d1f0583cf3.tar.gz
rockbox-bec1afada554b4624d0ef9b43b3443d1f0583cf3.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/onplay.c8
1 files changed, 2 insertions, 6 deletions
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)
136 136
137static bool shuffle_playlist(void) 137static bool shuffle_playlist(void)
138{ 138{
139 int seed, index; 139 playlist_sort(NULL, true);
140 140 playlist_randomise(NULL, current_tick, true);
141 seed = playlist_get_seed(NULL);
142 index = playlist_get_first_index(NULL);
143
144 playlist_shuffle(seed, index);
145 141
146 return false; 142 return false;
147} 143}