summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-02-22 23:23:16 +0000
committerDavid Robillard <d@drobilla.net>2010-02-22 23:23:16 +0000
commit4ec8f7b34946c7f1b9d54cdbe59797d585766fb2 (patch)
treea9d2de2e124b373801071641ae938e7218ca1b5f /src
parent8c98e7e907bf8139193436a3af44a5ecf7f74b80 (diff)
downloadingen-4ec8f7b34946c7f1b9d54cdbe59797d585766fb2.tar.gz
ingen-4ec8f7b34946c7f1b9d54cdbe59797d585766fb2.tar.bz2
ingen-4ec8f7b34946c7f1b9d54cdbe59797d585766fb2.zip
Fix crash when dynamically reducing polyphony.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2480 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/engine/PortImpl.cpp3
1 files changed, 2 insertions, 1 deletions
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);