aboutsummaryrefslogtreecommitdiffstats
path: root/src/PlayerThread.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-06-21 15:38:48 +0200
committerMax Kellermann <max@duempel.org>2015-06-21 15:38:48 +0200
commit06301e279c047f5f6c27393edb88c3207c94a992 (patch)
treea829dc64240cd55614bd9425408d88d4c6cb0399 /src/PlayerThread.cxx
parent6d6f2746485d8234110858e5e3621b0ce03c6c8a (diff)
downloadmpd-06301e279c047f5f6c27393edb88c3207c94a992.tar.gz
mpd-06301e279c047f5f6c27393edb88c3207c94a992.tar.xz
mpd-06301e279c047f5f6c27393edb88c3207c94a992.zip
PlayerThread: start the decoder on PlayerCommand::QUEUE
Fixes missing SongBorder() call, which causes "single" mode breakage.
Diffstat (limited to '')
-rw-r--r--src/PlayerThread.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/PlayerThread.cxx b/src/PlayerThread.cxx
index c5308e612..eeebcdb96 100644
--- a/src/PlayerThread.cxx
+++ b/src/PlayerThread.cxx
@@ -612,6 +612,12 @@ Player::ProcessCommand()
queued = true;
pc.CommandFinished();
+
+ pc.Unlock();
+ if (dc.LockIsIdle())
+ StartDecoder(*new MusicPipe());
+ pc.Lock();
+
break;
case PlayerCommand::PAUSE: