Commit d54acbcf authored by Max Kellermann's avatar Max Kellermann

Merge branch 'sles-assert-fix' of git://github.com/tguillem/MPD-1

parents ba3ff10c 86613af3
......@@ -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