Merge pull request #146 from chme/shufflefirstitem
Fix first item is not random
This commit is contained in:
commit
e994b345c0
|
@ -2832,13 +2832,13 @@ playback_start(struct player_command *cmd)
|
||||||
cur_streaming = NULL;
|
cur_streaming = NULL;
|
||||||
|
|
||||||
if (shuffle)
|
if (shuffle)
|
||||||
|
{
|
||||||
source_reshuffle();
|
source_reshuffle();
|
||||||
|
cur_streaming = shuffle_head;
|
||||||
|
}
|
||||||
|
else
|
||||||
cur_streaming = ps;
|
cur_streaming = ps;
|
||||||
|
|
||||||
if (shuffle)
|
|
||||||
shuffle_head = cur_streaming;
|
|
||||||
|
|
||||||
ret = source_open(cur_streaming, 0);
|
ret = source_open(cur_streaming, 0);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue