From 4f11f8cc49b24ede1735a16606e7bad5a52ab41d Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 29 Sep 2023 19:13:33 +0200 Subject: [PATCH] Fix CLAP plugins under hosts without latency callbacks Closes #432 Signed-off-by: falkTX --- distrho/src/DistrhoPluginCLAP.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/distrho/src/DistrhoPluginCLAP.cpp b/distrho/src/DistrhoPluginCLAP.cpp index b42af236d..1d366205d 100644 --- a/distrho/src/DistrhoPluginCLAP.cpp +++ b/distrho/src/DistrhoPluginCLAP.cpp @@ -1375,6 +1375,9 @@ class PluginCLAP : ClapEventQueue fLastKnownLatency = latency; + if (fHostExtensions.latency == nullptr) + return; + if (isActive) { fLatencyChanged = true;