Commit 92eeb496 authored by Max Kellermann's avatar Max Kellermann

output/Thread: don't wake up the player after receiving command in Play()

If we have a pending command, then the player thread is already awake. Even if not, we'll wake it up as soon as we have finished the command.
parent 6fcddaf8
......@@ -493,7 +493,10 @@ AudioOutput::Play()
in_playback_loop = false;
};
while (chunk != nullptr && command == Command::NONE) {
while (chunk != nullptr) {
if (command != Command::NONE)
return true;
if (!PlayChunk(chunk))
break;
......
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