Commit 8fca04f1 authored by Max Kellermann's avatar Max Kellermann

player/Thread: add missing lock for StartDecoder()

Regression from commit 0772e571
parent 3b2b5edd
...@@ -1042,6 +1042,7 @@ Player::Run() noexcept ...@@ -1042,6 +1042,7 @@ Player::Run() noexcept
assert(dc.pipe == nullptr || dc.pipe == pipe); assert(dc.pipe == nullptr || dc.pipe == pipe);
const std::lock_guard<Mutex> lock(pc.mutex);
StartDecoder(*new MusicPipe()); StartDecoder(*new MusicPipe());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment