Browse Source

Merge branch 'master' of falktxgh:falkTX/Carla

tags/v2.0.0
falkTX 5 years ago
parent
commit
14cb912d8c
3 changed files with 5 additions and 6 deletions
  1. +1
    -1
      source/backend/plugin/CarlaPluginInternal.cpp
  2. +3
    -4
      source/backend/plugin/CarlaPluginVST2.cpp
  3. +1
    -1
      source/frontend/carla_shared.py

+ 1
- 1
source/backend/plugin/CarlaPluginInternal.cpp View File

@@ -520,7 +520,7 @@ CarlaPlugin::ProtectedData::PostRtEvents::~PostRtEvents() noexcept


void CarlaPlugin::ProtectedData::PostRtEvents::appendRT(const PluginPostRtEvent& e) noexcept void CarlaPlugin::ProtectedData::PostRtEvents::appendRT(const PluginPostRtEvent& e) noexcept
{ {
CARLA_SAFE_ASSERT_RETURN(dataPendingMutex.tryLock(),);
CARLA_SAFE_ASSERT_INT2_RETURN(dataPendingMutex.tryLock(), e.type, e.value1,);


dataPendingRT.append(e); dataPendingRT.append(e);
dataPendingMutex.unlock(); dataPendingMutex.unlock();


+ 3
- 4
source/backend/plugin/CarlaPluginVST2.cpp View File

@@ -1861,10 +1861,9 @@ protected:
} }


// plugins should never do this: // plugins should never do this:
CARLA_SAFE_ASSERT_INT2(index >= 0 && index < static_cast<int32_t>(pData->param.count), index, pData->param.count);

if (index < 0 || index >= static_cast<int32_t>(pData->param.count))
break;
CARLA_SAFE_ASSERT_INT2_BREAK(index >= 0 && index < static_cast<int32_t>(pData->param.count),
index,
static_cast<int32_t>(pData->param.count));


const uint32_t uindex(static_cast<uint32_t>(index)); const uint32_t uindex(static_cast<uint32_t>(index));
const float fixedValue(pData->param.getFixedValue(uindex, opt)); const float fixedValue(pData->param.getFixedValue(uindex, opt));


+ 1
- 1
source/frontend/carla_shared.py View File

@@ -562,7 +562,7 @@ def handleInitialCommandLineArguments(file):


for arg in sys.argv[1:]: for arg in sys.argv[1:]:
if arg.startswith("--with-appname="): if arg.startswith("--with-appname="):
initName = os.path.basename(arg.replace("--with-initname=", ""))
initName = os.path.basename(arg.replace("--with-appname=", ""))


elif arg.startswith("--with-libprefix="): elif arg.startswith("--with-libprefix="):
libPrefix = arg.replace("--with-libprefix=", "") libPrefix = arg.replace("--with-libprefix=", "")


Loading…
Cancel
Save