DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit 242e0d2788795aad869b612d48f0be3ee6f99494
parent c17f6983d5a8e047e8c5d7b95e631ef315b6ad16
Author: falkTX <falktx@falktx.com>
Date:   Sun, 13 Jun 2021 15:37:41 +0100

Ignore hosts calling effOpen twice, dont print error

Diffstat:
Mdistrho/src/DistrhoPluginVST.cpp | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/distrho/src/DistrhoPluginVST.cpp b/distrho/src/DistrhoPluginVST.cpp @@ -1378,7 +1378,8 @@ static intptr_t vst_dispatcherCallback(AEffect* effect, int32_t opcode, int32_t DISTRHO_SAFE_ASSERT_RETURN(obj->audioMaster != nullptr, 0); // some hosts call effOpen twice - DISTRHO_SAFE_ASSERT_RETURN(obj->plugin == nullptr, 1); + if (obj->plugin != nullptr) + return 1; audioMasterCallback audioMaster = (audioMasterCallback)obj->audioMaster;