diff options
author | David Robillard <d@drobilla.net> | 2016-12-13 18:01:15 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-12-14 01:10:29 -0500 |
commit | 4df8895cf62db13f03ad7165c9d2b1060b04de4c (patch) | |
tree | b3f5a25e67e901f1091eca0b8072e050c568a351 /src/server/InputPort.cpp | |
parent | ad43d2e08cea225635b56c5473a768bc853ecda3 (diff) | |
download | ingen-4df8895cf62db13f03ad7165c9d2b1060b04de4c.tar.gz ingen-4df8895cf62db13f03ad7165c9d2b1060b04de4c.tar.bz2 ingen-4df8895cf62db13f03ad7165c9d2b1060b04de4c.zip |
Don't use path to determine if nodes are the main graph
Doing so is slower and touches std::string code that could in theory not be
RT-safe (though always is in practice).
Diffstat (limited to 'src/server/InputPort.cpp')
-rw-r--r-- | src/server/InputPort.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/InputPort.cpp b/src/server/InputPort.cpp index 61ce0c05..fc2abd56 100644 --- a/src/server/InputPort.cpp +++ b/src/server/InputPort.cpp @@ -152,7 +152,7 @@ InputPort::pre_process(RunContext& context) update_set_state(context, v); // Prepare for write in case a set event executes this cycle - if (!_parent->path().is_root()) { + if (!_parent->is_main()) { buffer(v)->prepare_write(context); } } @@ -251,7 +251,7 @@ bool InputPort::direct_connect() const { return _arcs.size() == 1 - && !_parent->path().is_root() + && !_parent->is_main() && !_arcs.front().must_mix() && buffer(0)->type() != _bufs.uris().atom_Sequence; } |