From 86613af37e51c45cc5e480a57f2c829739ec396f Mon Sep 17 00:00:00 2001 From: Thomas Guillem Date: Sat, 21 Mar 2020 22:18:57 +0100 Subject: [PATCH] output/sles: fix invalid assert Regression from 973c87b351b31961a51b6ea9afc4bea0872565ad --- src/output/plugins/sles/SlesOutputPlugin.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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);