output/Thread: eliminate redundant nullptr check
This commit is contained in:
parent
92eeb4969f
commit
265ad4b96a
|
@ -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()
|
||||||
|
|
||||||
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();
|
||||||
|
|
Loading…
Reference in New Issue