Browse Source

Fix crash/regression when using LV2 plugins without worker ext

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.5.4
falkTX 1 year ago
parent
commit
235beb8de5
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      source/backend/plugin/CarlaPluginLV2.cpp

+ 8
- 0
source/backend/plugin/CarlaPluginLV2.cpp View File

@@ -3247,8 +3247,16 @@ public:

if (fRdfDescriptor->ParameterCount > 0 ||
(fUI.type != UI::TYPE_NULL && fEventsIn.count > 0 && (fEventsIn.data[0].type & CARLA_EVENT_DATA_ATOM) != 0))
{
fAtomBufferEvIn.createBuffer(eventBufferSize);

if (fAtomBufferRealtimeSize == 0)
{
fAtomBufferRealtimeSize = fAtomBufferEvIn.getSize(); // actual buffer size will be next power of 2
fAtomBufferRealtime = static_cast<LV2_Atom*>(std::malloc(fAtomBufferRealtimeSize));
}
}

if (hasPatchParameterOutputs ||
(fUI.type != UI::TYPE_NULL && fEventsOut.count > 0 && (fEventsOut.data[0].type & CARLA_EVENT_DATA_ATOM) != 0))
{


Loading…
Cancel
Save