From 7cd27b17fbbd196beff8c1fcc209f10e9c24f274 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 12 Mar 2022 14:42:19 +0000 Subject: [PATCH] Set plugin dummy flag if RUNNING_UNDER_LV2LINT env var is set --- distrho/src/DistrhoPluginLV2.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/distrho/src/DistrhoPluginLV2.cpp b/distrho/src/DistrhoPluginLV2.cpp index 43ba64e9..b3e7956a 100644 --- a/distrho/src/DistrhoPluginLV2.cpp +++ b/distrho/src/DistrhoPluginLV2.cpp @@ -1486,6 +1486,9 @@ static LV2_Handle lv2_instantiate(const LV2_Descriptor*, double sampleRate, cons d_nextBundlePath = bundlePath; d_nextCanRequestParameterValueChanges = ctrlInPortChangeReq != nullptr; + if (std::getenv("RUNNING_UNDER_LV2LINT") != nullptr) + d_nextPluginIsDummy = true; + return new PluginLv2(sampleRate, uridMap, worker, ctrlInPortChangeReq, usingNominal); }