From be784fcbe29f9f7eb52298023dcbdb11c0b8604a Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 27 Aug 2023 10:46:35 +0200 Subject: [PATCH] Fix CarlaRingBuffer::tryWrite Signed-off-by: falkTX --- source/utils/CarlaRingBuffer.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/utils/CarlaRingBuffer.hpp b/source/utils/CarlaRingBuffer.hpp index f864b1270..f4a572e8b 100644 --- a/source/utils/CarlaRingBuffer.hpp +++ b/source/utils/CarlaRingBuffer.hpp @@ -448,7 +448,7 @@ protected: const uint32_t wrtn = fBuffer->wrtn; const uint32_t wrap = tail > wrtn ? 0 : fBuffer->size; - if (size >= wrap + tail - wrtn) + if (size > wrap + tail - wrtn) { if (! fErrorWriting) {