fix odd case where a deliver has no ports e.g session load.
authorRobin Gareus <robin@gareus.org>
Thu, 14 Apr 2016 17:20:39 +0000 (19:20 +0200)
committerRobin Gareus <robin@gareus.org>
Thu, 14 Apr 2016 17:20:39 +0000 (19:20 +0200)
libs/ardour/delivery.cc

index b31802e894bd568928fc9c305ef2c054a537fcb7..c538f6be8a5d597bb572cde045c313e54e6b731c 100644 (file)
@@ -236,6 +236,10 @@ Delivery::run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame, pf
        PortSet& ports (_output->ports());
        gain_t tgain;
 
+       if (ports.num_ports () == 0) {
+               goto out;
+       }
+
        if (!_active && !_pending_active) {
                _output->silence (nframes);
                goto out;