Only allow LV2 touch events for control inputs
This fixes a crash when a plugin sends a touch events for non-control ports.
This commit is contained in:
parent
383bd2526c
commit
b30ab9802a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user