fix LPPro crash if device is not present
This commit is contained in:
parent
1d6c2a946d
commit
7028450ea0
@ -129,6 +129,10 @@ LaunchPadPro::probe (std::string& i, std::string& o)
|
||||
auto pi = std::find_if (midi_inputs.begin(), midi_inputs.end(), has_lppro);
|
||||
auto po = std::find_if (midi_outputs.begin (), midi_outputs.end (), has_lppro);
|
||||
|
||||
if (pi == midi_inputs.end () || po == midi_outputs.end ()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
i = *pi;
|
||||
o = *po;
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user