From d5dcd0ed668781b311375715f761f67c07442291 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 22 Jan 2009 20:10:17 +0100 Subject: playlist: corrected shuffle underflow test Check for current>=0, not queued>=0. --- src/playlist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/playlist.c b/src/playlist.c index 99d1a1c69..fbb959fed 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -1161,12 +1161,12 @@ void shufflePlaylist(void) if (playlist.length > 1) { if (playlist_state == PLAYLIST_STATE_PLAY) { - if (playlist.queued >= 0) { + if (playlist.queued >= 0) clearPlayerQueue(); + if (playlist.current >= 0) /* put current playing song first */ swapSongs(0, playlist.order[playlist.current]); - } if (playlist.random) { int j; -- cgit v1.2.3