diff options
author | Robin Gareus <robin@gareus.org> | 2016-04-14 19:20:39 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-04-14 19:20:39 +0200 |
commit | 104fafbdc2b784639fd8bb653d12242bbd10d48e (patch) | |
tree | 779a5c89cc8e043a49b64e7895784110a4f0ec6e | |
parent | 6ea864d845a330127e452d6c48105c82e7f37087 (diff) |
fix odd case where a deliver has no ports e.g session load.
-rw-r--r-- | libs/ardour/delivery.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/delivery.cc b/libs/ardour/delivery.cc index b31802e894..c538f6be8a 100644 --- a/libs/ardour/delivery.cc +++ b/libs/ardour/delivery.cc @@ -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; |