summaryrefslogtreecommitdiff
path: root/libs/ardour/io.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-12-10 14:03:37 +0000
committerCarl Hetherington <carl@carlh.net>2011-12-10 14:03:37 +0000
commit5344f5ca0fefa9bd08f4231848a3e92f873538b4 (patch)
tree382805ad0d99e9db993f6e888317384f3c19d323 /libs/ardour/io.cc
parente02e25e3f31bafbdbb12cb76dcde4b34917a939d (diff)
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
Diffstat (limited to 'libs/ardour/io.cc')
-rw-r--r--libs/ardour/io.cc5
1 files changed, 5 insertions, 0 deletions
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<Processor> 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);
}