diff options
author | Robin Gareus <robin@gareus.org> | 2018-10-28 20:34:21 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-10-28 20:34:21 +0100 |
commit | b30ab9802af8efc939576a344860f528363348e6 (patch) | |
tree | 4b06773c3c1e02b647c84ab81bd9a8524029304e /gtk2_ardour | |
parent | 383bd2526c24777589d86361c72cba77ff922e54 (diff) |
Only allow LV2 touch events for control inputs
This fixes a crash when a plugin sends a touch events for non-control ports.
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/lv2_plugin_ui.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk2_ardour/lv2_plugin_ui.cc b/gtk2_ardour/lv2_plugin_ui.cc index 641fa8dce8..3ed95c7e98 100644 --- a/gtk2_ardour/lv2_plugin_ui.cc +++ b/gtk2_ardour/lv2_plugin_ui.cc @@ -100,6 +100,9 @@ LV2PluginUI::touch(void* controller, if (port_index >= me->_controllables.size()) { return; } + if (!me->_lv2->parameter_is_control(port_index) || !me->_lv2->parameter_is_input(port_index)) { + return; + } ControllableRef control = me->_controllables[port_index]; if (grabbed) { |