From 58e8d1cddd520ae0ddf39f16210f1500868a2b2e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 14 Aug 2008 04:03:14 +0000 Subject: 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 --- src/libs/engine/ConnectionImpl.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/libs/engine/ConnectionImpl.cpp') 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; -- cgit v1.2.1