13
0

don't assume that there is an AutomationControl for every signalled control

change from ::lv2_ui_write()


git-svn-id: svn://localhost/ardour2/branches/3.0@9328 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2011-04-07 17:20:30 +00:00
parent 574ef8d61b
commit 75bea74412

View File

@ -43,7 +43,11 @@ LV2PluginUI::lv2_ui_write(LV2UI_Controller controller,
const void* buffer)
{
LV2PluginUI* me = (LV2PluginUI*)controller;
me->_controllables[port_index]->set_value(*(float*)buffer);
boost::shared_ptr<AutomationControl> ac = me->_controllables[port_index];
if (ac) {
ac->set_value(*(float*)buffer);
}
}
void