diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-01-31 16:00:19 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-01-31 16:00:19 +0000 |
commit | 9383f8e09e4f32ba4ab5b2bd925ecfe7ed2a7784 (patch) | |
tree | 6014d7491f11ac0614314b738098bab4d60cf744 | |
parent | 737f91174f6680277632b6914a30b4be3ac81ab7 (diff) |
do not crash if an LV2 plugin calls the UI write callback with a port number that ardour has decided is not an automatable parameter. deeper questions surround this commit
git-svn-id: svn://localhost/ardour2/branches/3.0@11398 d708f5d6-7413-0410-9779-e7cbd77b26cf
-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) { |