13
0

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
This commit is contained in:
Paul Davis 2012-01-31 16:00:19 +00:00
parent 737f91174f
commit 9383f8e09e

View File

@ -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) {