From a421a44310ee472fbee15f150d32b826a8371dbf Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 8 Oct 2007 00:50:13 +0000 Subject: Fix serialization/connection bugs resulting from refactoring. git-svn-id: http://svn.drobilla.net/lad/ingen@842 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/Connection.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/libs/engine/Connection.cpp') diff --git a/src/libs/engine/Connection.cpp b/src/libs/engine/Connection.cpp index 0d54fe9f..894a9db7 100644 --- a/src/libs/engine/Connection.cpp +++ b/src/libs/engine/Connection.cpp @@ -123,10 +123,12 @@ Connection::process(ProcessContext& context) * would avoid having to mix multiple times. Probably not a very common * case, but it would be faster anyway. */ - if (_must_mix && type() == DataType::CONTROL || type() == DataType::AUDIO) { + if (_must_mix && (type() == DataType::CONTROL || type() == DataType::AUDIO)) { const AudioBuffer* const src_buffer = (AudioBuffer*)src_port()->buffer(0); AudioBuffer* mix_buf = (AudioBuffer*)_local_buffer; + + assert(mix_buf); const size_t copy_size = std::min(src_buffer->size(), mix_buf->size()); -- cgit v1.2.1