From 4ec8f7b34946c7f1b9d54cdbe59797d585766fb2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 22 Feb 2010 23:23:16 +0000 Subject: Fix crash when dynamically reducing polyphony. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2480 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/PortImpl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/PortImpl.cpp b/src/engine/PortImpl.cpp index 150934a4..7bb81bbe 100644 --- a/src/engine/PortImpl.cpp +++ b/src/engine/PortImpl.cpp @@ -132,12 +132,13 @@ PortImpl::apply_poly(Maid& maid, uint32_t poly) assert(poly <= _prepared_buffers->size()); + _poly = poly; + // Apply a new set of buffers from a preceding call to prepare_poly maid.push(set_buffers(_prepared_buffers)); assert(_buffers == _prepared_buffers); _prepared_buffers = NULL; - _poly = poly; assert(_buffers->size() >= poly); assert(this->poly() == poly); assert(!_prepared_buffers); -- cgit v1.2.1