diff options
Diffstat (limited to 'gtk2_ardour/lv2_plugin_ui.cc')
-rw-r--r-- | gtk2_ardour/lv2_plugin_ui.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/lv2_plugin_ui.cc b/gtk2_ardour/lv2_plugin_ui.cc index 785a6b9721..751985871d 100644 --- a/gtk2_ardour/lv2_plugin_ui.cc +++ b/gtk2_ardour/lv2_plugin_ui.cc @@ -47,6 +47,11 @@ LV2PluginUI::lv2_ui_write(void* controller, const void* buffer) { LV2PluginUI* me = (LV2PluginUI*)controller; + + if (port_index >= me->_controllables.size()) { + return; + } + boost::shared_ptr<AutomationControl> ac = me->_controllables[port_index]; if (ac) { |