forked from len0rd/rockbox
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
This commit is contained in:
parent
8fd0378c6f
commit
bec1afada5
1 changed files with 2 additions and 6 deletions
|
|
@ -136,12 +136,8 @@ static bool list_viewers(void)
|
||||||
|
|
||||||
static bool shuffle_playlist(void)
|
static bool shuffle_playlist(void)
|
||||||
{
|
{
|
||||||
int seed, index;
|
playlist_sort(NULL, true);
|
||||||
|
playlist_randomise(NULL, current_tick, true);
|
||||||
seed = playlist_get_seed(NULL);
|
|
||||||
index = playlist_get_first_index(NULL);
|
|
||||||
|
|
||||||
playlist_shuffle(seed, index);
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue