mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
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
1 changed files with 3 additions and 0 deletions
|
|
@ -100,6 +100,9 @@ LV2PluginUI::touch(void* controller,
|
||||||
if (port_index >= me->_controllables.size()) {
|
if (port_index >= me->_controllables.size()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (!me->_lv2->parameter_is_control(port_index) || !me->_lv2->parameter_is_input(port_index)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
ControllableRef control = me->_controllables[port_index];
|
ControllableRef control = me->_controllables[port_index];
|
||||||
if (grabbed) {
|
if (grabbed) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue