X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fio.cc;h=a3549f0a1d3ff0895ae7c9fb9abe99435b3e0093;hb=34936f365404a42769cb85764ecf72ae065da651;hp=1be47f35bfc01c2698b1f5a137fa3675c4b6de43;hpb=eb5161b6012a73eae0a288d71727edcfd161d16a;p=ardour.git diff --git a/libs/ardour/io.cc b/libs/ardour/io.cc index 1be47f35bf..a3549f0a1d 100644 --- a/libs/ardour/io.cc +++ b/libs/ardour/io.cc @@ -31,6 +31,7 @@ #include "pbd/replace_all.h" #include "pbd/unknown_type.h" #include "pbd/enumwriter.h" +#include "pbd/locale_guard.h" #include "pbd/types_convert.h" #include "ardour/audioengine.h" @@ -147,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); + } } }