projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
737f911
)
do not crash if an LV2 plugin calls the UI write callback with a port number that...
author
Paul Davis
<paul@linuxaudiosystems.com>
Tue, 31 Jan 2012 16:00:19 +0000
(16:00 +0000)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Tue, 31 Jan 2012 16:00:19 +0000
(16:00 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@11398
d708f5d6
-7413-0410-9779-
e7cbd77b26cf
gtk2_ardour/lv2_plugin_ui.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/lv2_plugin_ui.cc
b/gtk2_ardour/lv2_plugin_ui.cc
index 785a6b9721a87d32b2f042a3ffa0a48c9beb5b5f..751985871d3315a4d488ce1701a7f3dfc42d5f85 100644
(file)
--- 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) {