Refuse more configs with unmatched midi in if !imprecise
[ardour.git] / libs / ardour / luaproc.cc
index 46fc0aef2fdd2ec2395513f1d575d2a826aa15bd..c8e088af55e0445c3bee82729ed81df00c637bcb 100644 (file)
@@ -439,7 +439,7 @@ LuaProc::can_support_io_configuration (const ChanCount& in, ChanCount& out, Chan
                int possible_midiin = _has_midi_input ? 1 : 0;
                int possible_midiout = _has_midi_output ? 1 : 0;
 
-               if (midi_in > 0 && possible_midiin == 0 && !imprecise) {
+               if (midi_in != possible_midiin && !imprecise) {
                        continue;
                }