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