output/Thread: eliminate redundant nullptr check

This commit is contained in:
Max Kellermann 2016-12-13 22:18:33 +01:00
parent 92eeb4969f
commit 265ad4b96a
1 changed files with 2 additions and 2 deletions

View File

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