diff options
author | David Robillard <d@drobilla.net> | 2008-08-13 23:43:56 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-08-13 23:43:56 +0000 |
commit | 0d6f0c2fe47b5186e6f46c0d5f7f66bb3f9bd069 (patch) | |
tree | a6c9ddcc7d432d9656d462fc17c80d80f6181518 /src/libs/engine/LV2Node.cpp | |
parent | ef22788409473e8fbc04b41c90027bbd7f34a9df (diff) | |
download | ingen-0d6f0c2fe47b5186e6f46c0d5f7f66bb3f9bd069.tar.gz ingen-0d6f0c2fe47b5186e6f46c0d5f7f66bb3f9bd069.tar.bz2 ingen-0d6f0c2fe47b5186e6f46c0d5f7f66bb3f9bd069.zip |
Fix crash when dynamically changing polyphony w/ LADSPA plugins.
git-svn-id: http://svn.drobilla.net/lad/ingen@1360 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/LV2Node.cpp')
-rw-r--r-- | src/libs/engine/LV2Node.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/engine/LV2Node.cpp b/src/libs/engine/LV2Node.cpp index de1e61ca..59d30c7e 100644 --- a/src/libs/engine/LV2Node.cpp +++ b/src/libs/engine/LV2Node.cpp @@ -79,13 +79,13 @@ LV2Node::prepare_poly(uint32_t poly) _prepared_instances->at(i) = slv2_plugin_instantiate( _lv2_plugin->slv2_plugin(), _srate, NULL); - if ((*_prepared_instances)[i] == NULL) { + if (_prepared_instances->at(i) == NULL) { cerr << "Failed to instantiate plugin!" << endl; return false; } if (_activated) - slv2_instance_activate((*_prepared_instances)[i]); + slv2_instance_activate(_prepared_instances->at(i)); } return true; |