mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 14:15:46 +01:00
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:
parent
737f91174f
commit
9383f8e09e
1 changed files with 5 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue