output/sles: fix invalid assert

Regression from 973c87b351
This commit is contained in:
Thomas Guillem 2020-03-21 22:18:57 +01:00
parent 1ec283d213
commit 86613af37e

View File

@ -322,8 +322,9 @@ SlesOutput::Play(const void *chunk, size_t size)
assert(filled < BUFFER_SIZE);
cond.wait(lock, [this]{
assert(filled == 0);
return n_queued != N_BUFFERS;
bool ret = n_queued != N_BUFFERS;
assert(ret || filled == 0);
return ret;
});
size_t nbytes = std::min(BUFFER_SIZE - filled, size);