aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Bignon <romain@peerfuse.org>2009-03-31 14:05:11 +0200
committerRomain Bignon <romain@peerfuse.org>2009-03-31 14:15:33 +0200
commit62a72a5e4d17b802aacda9fd3e5b86492c816804 (patch)
treef3bf0890bb27e056e9df6a4ba8a01ffa9f649b81
parent1f4f6e6df2afeac3f52638a6bfb5d91247961217 (diff)
downloadmpd-62a72a5e4d17b802aacda9fd3e5b86492c816804.tar.gz
mpd-62a72a5e4d17b802aacda9fd3e5b86492c816804.tar.xz
mpd-62a72a5e4d17b802aacda9fd3e5b86492c816804.zip
do not consider single mode with "next" command
This is a little ugly, but as nextSongInPlaylist is both called when queued is update (in case playlist ended) and for user "next" command, there isn't any other (simple) solution
Diffstat (limited to '')
-rw-r--r--src/command.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/command.c b/src/command.c
index 762db37b3..48f6b8873 100644
--- a/src/command.c
+++ b/src/command.c
@@ -1013,7 +1013,14 @@ static enum command_return
handle_next(G_GNUC_UNUSED struct client *client,
G_GNUC_UNUSED int argc, G_GNUC_UNUSED char *argv[])
{
+ /* single mode is not considered when this is user who
+ * wants to change song. */
+ int single = g_playlist.queue.single;
+ g_playlist.queue.single = false;
+
nextSongInPlaylist(&g_playlist);
+
+ g_playlist.queue.single = single;
return COMMAND_RETURN_OK;
}