Merge pull request #146 from chme/shufflefirstitem

Fix first item is not random
This commit is contained in:
ejurgensen 2015-05-05 18:55:01 +02:00
commit e994b345c0
1 changed files with 6 additions and 6 deletions

View File

@ -2832,12 +2832,12 @@ playback_start(struct player_command *cmd)
cur_streaming = NULL; cur_streaming = NULL;
if (shuffle) if (shuffle)
source_reshuffle(); {
source_reshuffle();
cur_streaming = ps; cur_streaming = shuffle_head;
}
if (shuffle) else
shuffle_head = cur_streaming; cur_streaming = ps;
ret = source_open(cur_streaming, 0); ret = source_open(cur_streaming, 0);
if (ret < 0) if (ret < 0)