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

This commit is contained in:
Max Kellermann 2018-01-02 17:47:46 +01:00
parent f4a56f839f
commit 8dfdacf128
1 changed files with 1 additions and 0 deletions

View File

@ -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(),