Commit 265ad4b9 authored by Max Kellermann's avatar Max Kellermann

output/Thread: eliminate redundant nullptr check

parent 92eeb496
...@@ -493,7 +493,7 @@ AudioOutput::Play() ...@@ -493,7 +493,7 @@ AudioOutput::Play()
in_playback_loop = false; in_playback_loop = false;
}; };
while (chunk != nullptr) { do {
if (command != Command::NONE) if (command != Command::NONE)
return true; return true;
...@@ -502,7 +502,7 @@ AudioOutput::Play() ...@@ -502,7 +502,7 @@ AudioOutput::Play()
pipe.Consume(*chunk); pipe.Consume(*chunk);
chunk = pipe.Get(); chunk = pipe.Get();
} } while (chunk != nullptr);
const ScopeUnlock unlock(mutex); const ScopeUnlock unlock(mutex);
player_control->LockSignal(); player_control->LockSignal();
......
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