13
0

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:
Robin Gareus 2018-10-28 20:34:21 +01:00
parent 383bd2526c
commit b30ab9802a

View File

@ -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) {