summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/ConnectionImpl.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/ConnectionImpl.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/ConnectionImpl.cpp')
-rw-r--r--src/libs/engine/ConnectionImpl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libs/engine/ConnectionImpl.cpp b/src/libs/engine/ConnectionImpl.cpp
index a6f573a8..d226b4dd 100644
--- a/src/libs/engine/ConnectionImpl.cpp
+++ b/src/libs/engine/ConnectionImpl.cpp
@@ -92,6 +92,8 @@ ConnectionImpl::set_buffer_size(size_t size)
void
ConnectionImpl::prepare_poly(uint32_t poly)
{
+ _src_port->prepare_poly(poly);
+
if (type() == DataType::CONTROL || type() == DataType::AUDIO)
_must_mix = (poly > 1) && (
(_src_port->poly() != _dst_port->poly())
@@ -110,6 +112,7 @@ ConnectionImpl::prepare_poly(uint32_t poly)
void
ConnectionImpl::apply_poly(Raul::Maid& maid, uint32_t poly)
{
+ _src_port->apply_poly(maid, poly);
if (poly == 1 && _local_buffer && !_must_mix) {
maid.push(_local_buffer);
_local_buffer = NULL;