Allow calling IO::silence for yet unregistered ports (Click)

This commit is contained in:
Robin Gareus
2017-08-03 23:54:26 +02:00
parent 6b5d374352
commit 34936f3654

View File

@@ -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);
}
}
}