Commit cfbafbef authored by Max Kellermann's avatar Max Kellermann

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.
parent 5d31e7e7
...@@ -772,7 +772,7 @@ void nextSongInPlaylist(void) ...@@ -772,7 +772,7 @@ void nextSongInPlaylist(void)
return; return;
} }
if (next_order == 0) { if (next_order == 0 && playlist.queue.random) {
assert(playlist.queue.repeat); assert(playlist.queue.repeat);
queue_shuffle_order(&playlist.queue); queue_shuffle_order(&playlist.queue);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment