summaryrefslogtreecommitdiffstats
path: root/src/server/GraphImpl.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-10-25 05:10:37 +0000
committerDavid Robillard <d@drobilla.net>2015-10-25 05:10:37 +0000
commit94d2f7cfc7e573c6fdd7487b1ab207d01e9fdbcf (patch)
tree0d2c95c194d95e6e5925c66bbd4c709173421bfd /src/server/GraphImpl.cpp
parentcbd64a410c165972f13d18e4260bb63b770b3c1f (diff)
downloadingen-94d2f7cfc7e573c6fdd7487b1ab207d01e9fdbcf.tar.gz
ingen-94d2f7cfc7e573c6fdd7487b1ab207d01e9fdbcf.tar.bz2
ingen-94d2f7cfc7e573c6fdd7487b1ab207d01e9fdbcf.zip
Create all graphs the same way
This ensures that subgraphs always have the standard control ports, so they are valid Ingen graphs on their own.. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5783 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/GraphImpl.cpp')
-rw-r--r--src/server/GraphImpl.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/server/GraphImpl.cpp b/src/server/GraphImpl.cpp
index 535269a6..ef7f6a22 100644
--- a/src/server/GraphImpl.cpp
+++ b/src/server/GraphImpl.cpp
@@ -249,8 +249,12 @@ GraphImpl::set_buffer_size(Context& context,
{
BlockImpl::set_buffer_size(context, bufs, type, size);
- for (size_t i = 0; i < _compiled_graph->size(); ++i)
- (*_compiled_graph)[i].block()->set_buffer_size(context, bufs, type, size);
+ if (_compiled_graph) {
+ for (size_t i = 0; i < _compiled_graph->size(); ++i) {
+ const CompiledBlock& block = (*_compiled_graph)[i];
+ block.block()->set_buffer_size(context, bufs, type, size);
+ }
+ }
}
void
@@ -362,7 +366,7 @@ compile_recursive(BlockImpl* n, CompiledGraph* output)
if (!p->traversed())
compile_recursive(p, output);
- output->push_back(CompiledBlock(n, n->providers().size(), n->dependants()));
+ output->push_back(CompiledBlock(n));
}
CompiledGraph*