AU: don't consider in-place if there are no inputs
authorRobin Gareus <robin@gareus.org>
Wed, 11 Sep 2019 00:31:19 +0000 (02:31 +0200)
committerRobin Gareus <robin@gareus.org>
Wed, 11 Sep 2019 00:56:04 +0000 (02:56 +0200)
libs/ardour/audio_unit.cc

index cfa0efa15d310f592c0a61d1362263c059bde2ae..e1ef883747b48642521421b8728282a74b43a704 100644 (file)
@@ -1602,7 +1602,7 @@ AUPlugin::connect_and_run (BufferSet& bufs,
        bool inplace = true; // TODO check plugin-insert in-place ?
        ChanMapping::Mappings inmap (in_map.mappings ());
        ChanMapping::Mappings outmap (out_map.mappings ());
-       if (outmap[DataType::AUDIO].size () == 0) {
+       if (outmap[DataType::AUDIO].size () == 0 || inmap[DataType::AUDIO].size() == 0) {
                inplace = false;
        }
        if (inmap[DataType::AUDIO].size() > 0 && inmap != outmap) {