From 06301e279c047f5f6c27393edb88c3207c94a992 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 21 Jun 2015 15:38:48 +0200 Subject: [PATCH] PlayerThread: start the decoder on PlayerCommand::QUEUE Fixes missing SongBorder() call, which causes "single" mode breakage. --- NEWS | 1 + src/PlayerThread.cxx | 6 ++++++ 2 files changed, 7 insertions(+) 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: