summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}