summaryrefslogtreecommitdiff
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
parent6d6f2746485d8234110858e5e3621b0ce03c6c8a (diff)
PlayerThread: start the decoder on PlayerCommand::QUEUE
Fixes missing SongBorder() call, which causes "single" mode breakage.
-rw-r--r--NEWS1
-rw-r--r--src/PlayerThread.cxx6
2 files changed, 7 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index b77559f56..2e529e3cc 100644
--- a/NEWS
+++ b/NEWS
@@ -11,6 +11,7 @@ ver 0.19.10 (not yet released)
- fix failure to open device right after booting
* neighbor
- nfs: fix deadlock when connecting
+* fix "single" mode breakage due to queue edits
ver 0.19.9 (2015/02/06)
* decoder
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: