diff options
author | David Robillard <d@drobilla.net> | 2012-05-15 17:46:56 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-05-15 17:46:56 +0000 |
commit | 8223f1b24afe7d38454c6d12eb2f6bb2e5b1335d (patch) | |
tree | 51c198f30daa563d5586c13964c42f64db4821be /src/server/PatchImpl.cpp | |
parent | 2702958722392b6fa05d322380a279db25830f33 (diff) | |
download | ingen-8223f1b24afe7d38454c6d12eb2f6bb2e5b1335d.tar.gz ingen-8223f1b24afe7d38454c6d12eb2f6bb2e5b1335d.tar.bz2 ingen-8223f1b24afe7d38454c6d12eb2f6bb2e5b1335d.zip |
Fix crash when loading patches from the command line.
Remove unnecessary fields from CreateNode event.
Clean up CreateNode event and fix bugs.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4418 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/PatchImpl.cpp')
-rw-r--r-- | src/server/PatchImpl.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/server/PatchImpl.cpp b/src/server/PatchImpl.cpp index 89a7a699..fefc797e 100644 --- a/src/server/PatchImpl.cpp +++ b/src/server/PatchImpl.cpp @@ -157,19 +157,19 @@ PatchImpl::process(ProcessContext& context) NodeImpl::pre_process(context); - // Run all nodes if (_compiled_patch && _compiled_patch->size() > 0) { + // Run all nodes if (context.slaves().size() > 0) { process_parallel(context); } else { process_single(context); } - } - // Queue any cross-context edges - for (CompiledPatch::QueuedEdges::iterator i = _compiled_patch->queued_edges.begin(); - i != _compiled_patch->queued_edges.end(); ++i) { - (*i)->queue(context); + // Queue any cross-context edges + for (CompiledPatch::QueuedEdges::iterator i = _compiled_patch->queued_edges.begin(); + i != _compiled_patch->queued_edges.end(); ++i) { + (*i)->queue(context); + } } NodeImpl::post_process(context); |