diff options
author | Max Kellermann <max@duempel.org> | 2015-06-21 15:38:48 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-06-21 15:38:48 +0200 |
commit | 06301e279c047f5f6c27393edb88c3207c94a992 (patch) | |
tree | a829dc64240cd55614bd9425408d88d4c6cb0399 | |
parent | 6d6f2746485d8234110858e5e3621b0ce03c6c8a (diff) | |
download | mpd-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.
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | src/PlayerThread.cxx | 6 |
2 files changed, 7 insertions, 0 deletions
@@ -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: |