summaryrefslogtreecommitdiff
path: root/libs/ardour/delivery.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-04-14 19:20:39 +0200
committerRobin Gareus <robin@gareus.org>2016-04-14 19:20:39 +0200
commit104fafbdc2b784639fd8bb653d12242bbd10d48e (patch)
tree779a5c89cc8e043a49b64e7895784110a4f0ec6e /libs/ardour/delivery.cc
parent6ea864d845a330127e452d6c48105c82e7f37087 (diff)
fix odd case where a deliver has no ports e.g session load.
Diffstat (limited to 'libs/ardour/delivery.cc')
-rw-r--r--libs/ardour/delivery.cc4
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;