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:
Max Kellermann 2009-01-23 06:32:26 +01:00
parent 5d31e7e7d2
commit cfbafbefdc

View File

@ -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);