summaryrefslogtreecommitdiff
path: root/gtk2_ardour/lv2_plugin_ui.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-04-07 17:20:30 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-04-07 17:20:30 +0000
commit75bea7441266f410dd1f177bb056dea874ddebcc (patch)
tree70dd667021f2ec8732364069cff22feb245cb180 /gtk2_ardour/lv2_plugin_ui.cc
parent574ef8d61b34968bac6de9cf240eff9c95881417 (diff)
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
Diffstat (limited to 'gtk2_ardour/lv2_plugin_ui.cc')
-rw-r--r--gtk2_ardour/lv2_plugin_ui.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk2_ardour/lv2_plugin_ui.cc b/gtk2_ardour/lv2_plugin_ui.cc
index ead7440b3a..3bd6ab1bc6 100644
--- a/gtk2_ardour/lv2_plugin_ui.cc
+++ b/gtk2_ardour/lv2_plugin_ui.cc
@@ -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