diff --git a/dpf/distrho/src/DistrhoPluginLV2export.cpp b/dpf/distrho/src/DistrhoPluginLV2export.cpp index aa92bf7d..f99e5937 100644 --- a/dpf/distrho/src/DistrhoPluginLV2export.cpp +++ b/dpf/distrho/src/DistrhoPluginLV2export.cpp @@ -359,7 +359,7 @@ void lv2_generate_ttl(const char* const basename) pluginString += " lv2:name \"Latency\" ;\n"; pluginString += " lv2:symbol \"lv2_latency\" ;\n"; pluginString += " lv2:designation lv2:latency ;\n"; - pluginString += " lv2:portProperty lv2:reportsLatency, lv2:integer ;\n"; + pluginString += " lv2:portProperty lv2:reportsLatency, lv2:integer, <" LV2_PORT_PROPS__notOnGUI "> ;\n"; pluginString += " ] ;\n\n"; ++portIndex; #endif diff --git a/dpf/distrho/src/DistrhoUILV2.cpp b/dpf/distrho/src/DistrhoUILV2.cpp index 7eaec209..7942a1da 100644 --- a/dpf/distrho/src/DistrhoUILV2.cpp +++ b/dpf/distrho/src/DistrhoUILV2.cpp @@ -114,7 +114,9 @@ class UiLv2 { const uint32_t parameterOffset(fUI.getParameterOffset()); - DISTRHO_SAFE_ASSERT_RETURN(rindex >= parameterOffset,) + if (rindex < parameterOffset) + return; + DISTRHO_SAFE_ASSERT_RETURN(bufferSize == sizeof(float),) const float value(*(const float*)buffer);