diff options
author | Robin Gareus <robin@gareus.org> | 2017-08-03 23:54:26 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-08-03 23:54:26 +0200 |
commit | 34936f365404a42769cb85764ecf72ae065da651 (patch) | |
tree | c388b742a906dacb162fcc8fa10b2f8c808573c8 | |
parent | 6b5d37435277c292182be0f57e96826bccf4733c (diff) |
Allow calling IO::silence for yet unregistered ports (Click)
-rw-r--r-- | libs/ardour/io.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/io.cc b/libs/ardour/io.cc index 46c5d7b8c5..a3549f0a1d 100644 --- a/libs/ardour/io.cc +++ b/libs/ardour/io.cc @@ -148,7 +148,9 @@ IO::silence (framecnt_t nframes) /* io_lock, not taken: function must be called from Session::process() calltree */ for (PortSet::iterator i = _ports.begin(); i != _ports.end(); ++i) { - i->get_buffer(nframes).silence (nframes); + if (i->port_handle ()) { + i->get_buffer(nframes).silence (nframes); + } } } |