projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b5d374
)
Allow calling IO::silence for yet unregistered ports (Click)
author
Robin Gareus
<robin@gareus.org>
Thu, 3 Aug 2017 21:54:26 +0000
(23:54 +0200)
committer
Robin Gareus
<robin@gareus.org>
Thu, 3 Aug 2017 21:54:26 +0000
(23:54 +0200)
libs/ardour/io.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/io.cc
b/libs/ardour/io.cc
index 46c5d7b8c5f434a56a32603525ac56b59be78403..a3549f0a1d3ff0895ae7c9fb9abe99435b3e0093 100644
(file)
--- 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);
+ }
}
}