diff options
author | David Robillard <d@drobilla.net> | 2010-02-17 19:40:36 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-02-17 19:40:36 +0000 |
commit | 8aacf1bd969d4aa8bdcc309b11eeface31fe9878 (patch) | |
tree | 98684f9ac7b55c0275b195e9d250f694f3fa3460 /src/engine/LV2Node.cpp | |
parent | 35369ade66f8410e828316a34de539a3c235c79d (diff) | |
download | ingen-8aacf1bd969d4aa8bdcc309b11eeface31fe9878.tar.gz ingen-8aacf1bd969d4aa8bdcc309b11eeface31fe9878.tar.bz2 ingen-8aacf1bd969d4aa8bdcc309b11eeface31fe9878.zip |
Fix crash when rapidly decreasing polyphony (make SetMetadataEvent blocking if polyphony is changed).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2461 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/LV2Node.cpp')
-rw-r--r-- | src/engine/LV2Node.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/LV2Node.cpp b/src/engine/LV2Node.cpp index 956bf3af..7a8d396e 100644 --- a/src/engine/LV2Node.cpp +++ b/src/engine/LV2Node.cpp @@ -91,9 +91,9 @@ LV2Node::prepare_poly(BufferFactory& bufs, uint32_t poly) } // Initialize the values of new ports - for (unsigned long j=0; j < num_ports(); ++j) { - PortImpl* const port = _ports->at(j); - Buffer* buffer = port->prepared_buffer(i).get(); + for (uint32_t j = 0; j < num_ports(); ++j) { + PortImpl* const port = _ports->at(j); + Buffer* const buffer = port->prepared_buffer(i).get(); // FIXME: Preserve individual voice values if (port->type() == PortType::CONTROL) { |