Commit 86613af3 authored by Thomas Guillem's avatar Thomas Guillem

output/sles: fix invalid assert

Regression from 973c87b3
parent 1ec283d2
......@@ -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);
......
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