From 8fca04f1400b5b8922392b338a9a97d471d96902 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 22 Dec 2017 01:12:15 +0100 Subject: [PATCH] player/Thread: add missing lock for StartDecoder() Regression from commit 0772e571b7aa1b428f61153b93d4483edec8a609 --- src/player/Thread.cxx | 1 + 1 file changed, 1 insertion(+) 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()); }