Browse Source

Import minor fixes from main branch

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.5.7
falkTX 1 year ago
parent
commit
ac8eaf4736
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      source/utils/CarlaRingBuffer.hpp
  2. +1
    -1
      source/utils/CarlaStateUtils.cpp

+ 1
- 1
source/utils/CarlaRingBuffer.hpp View File

@@ -155,7 +155,7 @@ public:


const uint32_t wrap((fBuffer->tail > fBuffer->wrtn) ? 0 : fBuffer->size); const uint32_t wrap((fBuffer->tail > fBuffer->wrtn) ? 0 : fBuffer->size);


return wrap + fBuffer->tail - fBuffer->wrtn;
return wrap + fBuffer->tail - fBuffer->wrtn - 1;
} }


// ------------------------------------------------------------------- // -------------------------------------------------------------------


+ 1
- 1
source/utils/CarlaStateUtils.cpp View File

@@ -249,7 +249,7 @@ void CarlaStateSave::clear() noexcept
} }


uniqueId = 0; uniqueId = 0;
options = 0x0;
options = PLUGIN_OPTIONS_NULL;


#ifndef BUILD_BRIDGE_ALTERNATIVE_ARCH #ifndef BUILD_BRIDGE_ALTERNATIVE_ARCH
active = false; active = false;


Loading…
Cancel
Save