From: Carl Hetherington Date: Sat, 10 Dec 2011 14:03:37 +0000 (+0000) Subject: Don't try to process_input() if an IO has no ports; fixes X-Git-Tag: 3.0-beta2~207 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=5344f5ca0fefa9bd08f4231848a3e92f873538b4;p=ardour.git Don't try to process_input() if an IO has no ports; fixes #4546. git-svn-id: svn://localhost/ardour2/branches/3.0@10965 d708f5d6-7413-0410-9779-e7cbd77b26cf --- diff --git a/libs/ardour/io.cc b/libs/ardour/io.cc index c5f0c7361d..24bc587c0d 100644 --- a/libs/ardour/io.cc +++ b/libs/ardour/io.cc @@ -1554,6 +1554,11 @@ IO::process_input (boost::shared_ptr proc, framepos_t start_frame, fr { /* don't read the data into new buffers - just use the port buffers directly */ + if (n_ports().n_total() == 0) { + /* We have no ports, so nothing to process */ + return; + } + _buffers.get_jack_port_addresses (_ports, nframes); proc->run (_buffers, start_frame, end_frame, nframes, true); }