From 53be3c4497fd185b0a210f09bfbf7b9b6802da47 Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 11 Jun 2021 22:48:40 +0100 Subject: [PATCH] Carla-VST: Ignore hosts calling effOpen twice, dont print error Signed-off-by: falkTX --- source/plugin/carla-vst.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/plugin/carla-vst.cpp b/source/plugin/carla-vst.cpp index 6cc260af2..0b78ed375 100644 --- a/source/plugin/carla-vst.cpp +++ b/source/plugin/carla-vst.cpp @@ -960,7 +960,8 @@ intptr_t vst_dispatcherCallback(AEffect* effect, int32_t opcode, int32_t index, CARLA_SAFE_ASSERT_RETURN(obj->audioMaster != nullptr, 0); // some hosts call effOpen twice - CARLA_SAFE_ASSERT_RETURN(obj->plugin == nullptr, 1); + if (obj->plugin != nullptr) + return 1; d_lastBufferSize = static_cast(VSTAudioMaster(effect, audioMasterGetBlockSize, 0, 0, nullptr, 0.0f)); d_lastSampleRate = static_cast(VSTAudioMaster(effect, audioMasterGetSampleRate, 0, 0, nullptr, 0.0f));