diff options
author | Robin Gareus <robin@gareus.org> | 2015-03-20 21:19:25 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-03-20 21:19:25 +0100 |
commit | 7619edd1f6b2b219076a483b56316afbab3c7e7d (patch) | |
tree | b09c02dea78d30466bb3e4c91308f0ed4ea454fb /libs | |
parent | 17e1e2641b443a4860c7094c04ae414af376125b (diff) |
OSC: fix crash when trying to set output params
Diffstat (limited to 'libs')
-rw-r--r-- | libs/surfaces/osc/osc.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc index 1838f698d4..06af2dc92d 100644 --- a/libs/surfaces/osc/osc.cc +++ b/libs/surfaces/osc/osc.cc @@ -1005,6 +1005,10 @@ OSC::route_plugin_parameter (int rid, int piid, int par, float val) return -1; } + if (!pip->parameter_is_input(par)) { + return -1; + } + ParameterDescriptor pd; pi->plugin()->get_parameter_descriptor (controlid,pd); |