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

output/Thread: AudioOutput::Play() must not return zero

parent f4a56f83
......@@ -274,6 +274,7 @@ AudioOutputControl::PlayChunk() noexcept
try {
const ScopeUnlock unlock(mutex);
nbytes = output->Play(data.data, data.size);
assert(nbytes > 0);
assert(nbytes <= data.size);
} catch (...) {
FormatError(std::current_exception(),
......
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