diff --git a/src/player/Thread.cxx b/src/player/Thread.cxx index 1f3cf4a94..e0fd1cb50 100644 --- a/src/player/Thread.cxx +++ b/src/player/Thread.cxx @@ -1042,6 +1042,7 @@ Player::Run() noexcept assert(dc.pipe == nullptr || dc.pipe == pipe); + const std::lock_guard lock(pc.mutex); StartDecoder(*new MusicPipe()); }