fix first item is not shuffled
This commit is contained in:
parent
a966c095d2
commit
d19fbe5ed7
12
src/player.c
12
src/player.c
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue