playlist: don't shuffle if not in random mode
One of the previous patches removed the "random" mode check from nextSongInPlaylist(), which caused a shuffle whenever MPD wrapped to the first song in "repeat" mode. Re-add that "random" check.
This commit is contained in:
parent
5d31e7e7d2
commit
cfbafbefdc
@ -772,7 +772,7 @@ void nextSongInPlaylist(void)
|
||||
return;
|
||||
}
|
||||
|
||||
if (next_order == 0) {
|
||||
if (next_order == 0 && playlist.queue.random) {
|
||||
assert(playlist.queue.repeat);
|
||||
|
||||
queue_shuffle_order(&playlist.queue);
|
||||
|
Loading…
Reference in New Issue
Block a user