summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/PortImpl.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-08-14 04:03:14 +0000
committerDavid Robillard <d@drobilla.net>2008-08-14 04:03:14 +0000
commit58e8d1cddd520ae0ddf39f16210f1500868a2b2e (patch)
tree3da3105ec9c526f36352295b6d75c390e05c26b5 /src/libs/engine/PortImpl.cpp
parent2ad7b1dab1cbbc9a35fe84ce784179d78fba3a29 (diff)
downloadingen-58e8d1cddd520ae0ddf39f16210f1500868a2b2e.tar.gz
ingen-58e8d1cddd520ae0ddf39f16210f1500868a2b2e.tar.bz2
ingen-58e8d1cddd520ae0ddf39f16210f1500868a2b2e.zip
Lock RDF world mutex in all places slv2 or redland is accessed (fix random segfaults usually on patch loading).
git-svn-id: http://svn.drobilla.net/lad/ingen@1367 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/PortImpl.cpp')
-rw-r--r--src/libs/engine/PortImpl.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libs/engine/PortImpl.cpp b/src/libs/engine/PortImpl.cpp
index 9061ffc5..9b609323 100644
--- a/src/libs/engine/PortImpl.cpp
+++ b/src/libs/engine/PortImpl.cpp
@@ -58,6 +58,8 @@ PortImpl::PortImpl(NodeImpl* const node,
if (node->parent() == NULL)
_polyphonic = false;
+ else
+ _polyphonic = true;
if (type == DataType::EVENT)
_broadcast = true; // send activity blips
@@ -117,8 +119,8 @@ PortImpl::apply_poly(Raul::Maid& maid, uint32_t poly)
}
_poly = poly;
-
- connect_buffers();
+ assert(_buffers->size() >= poly);
+ assert(this->poly() == poly);
return true;
}