Browse Source

Fix crash loading bridged plugins with latency

tags/1.9.8
falkTX 6 years ago
parent
commit
a4c05a11cb
2 changed files with 7 additions and 3 deletions
  1. +6
    -2
      source/backend/plugin/CarlaPluginBridge.cpp
  2. +1
    -1
      source/modules/water/threads/SpinLock.h

+ 6
- 2
source/backend/plugin/CarlaPluginBridge.cpp View File

@@ -2079,8 +2079,12 @@ public:
} break;

case kPluginBridgeNonRtServerSetLatency:
// FIXME
if (true) break;
if (true)
{
// FIXME - latency adjust code on this file is broken
fShmNonRtServerControl.readUInt();
break;
}

// uint
fLatency = fShmNonRtServerControl.readUInt();


+ 1
- 1
source/modules/water/threads/SpinLock.h View File

@@ -87,7 +87,7 @@ public:
/** Releases the lock. */
inline void exit() const noexcept
{
CARLA_SAFE_ASSERT_RETURN(lock.value == 1,);
CARLA_SAFE_ASSERT_RETURN(lock.get() == 1,);
lock = 0;
}


Loading…
Cancel
Save