diff --git a/distrho/src/DistrhoPluginCLAP.cpp b/distrho/src/DistrhoPluginCLAP.cpp index ee336dbc..a83ddfbd 100644 --- a/distrho/src/DistrhoPluginCLAP.cpp +++ b/distrho/src/DistrhoPluginCLAP.cpp @@ -1199,7 +1199,8 @@ public: } #if DISTRHO_PLUGIN_WANT_LATENCY - checkForLatencyChanges(fPlugin.isActive(), false); + const bool active = fPlugin.isActive(); + checkForLatencyChanges(active, !active); #endif }