diff --git a/src/output/plugins/sles/SlesOutputPlugin.cxx b/src/output/plugins/sles/SlesOutputPlugin.cxx index ad216e7fc..89ad1b7cd 100644 --- a/src/output/plugins/sles/SlesOutputPlugin.cxx +++ b/src/output/plugins/sles/SlesOutputPlugin.cxx @@ -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);