handle no audio-output AUs
authorRobin Gareus <robin@gareus.org>
Sat, 16 Jul 2016 16:44:05 +0000 (18:44 +0200)
committerRobin Gareus <robin@gareus.org>
Sat, 16 Jul 2016 16:44:05 +0000 (18:44 +0200)
libs/ardour/audio_unit.cc

index 85a387e9339aa6b9b7e0d6fe9393fd3b2da92730..5c324b0be2139c03451810eaf5013896e2a1ab7f 100644 (file)
@@ -1651,7 +1651,9 @@ 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 ());
-       assert (outmap[DataType::AUDIO].size () > 0);
+       if (outmap[DataType::AUDIO].size () == 0) {
+               inplace = false;
+       }
        if (inmap[DataType::AUDIO].size() > 0 && inmap != outmap) {
                inplace = false;
        }