Rearrange condition for pure midi plugins
authorJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Wed, 3 Aug 2016 10:08:01 +0000 (12:08 +0200)
committerJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Sat, 6 Aug 2016 17:38:09 +0000 (19:38 +0200)
libs/ardour/luaproc.cc

index e9a188c82ce84481711d00d6b222cb72fae21b63..35f43b5dc10d41f949a6983ef0172b6ef4be7ce0 100644 (file)
@@ -447,9 +447,10 @@ LuaProc::can_support_io_configuration (const ChanCount& in, ChanCount& out, Chan
 
                // "imprecise" matches
                if (possible_out == 0) {
-                       if (possible_in == 0) {
-                               if (_has_midi_output && audio_in == 0) {
-                                       // special case midi filters & generators
+                       /* skip configurations with no audio output, unless
+                        * the plugin is a midi filter or generator */
+                       if (possible_in == 0 && _has_midi_output) {
+                               if (audio_in == 0) {
                                        FOUNDCFG(possible_out);
                                        break;
                                }