summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-06-18 18:13:06 +0000
committerDavid Robillard <d@drobilla.net>2006-06-18 18:13:06 +0000
commit11e6d70077bd569dce5fda8faf5ebf8615be2cb0 (patch)
tree3c935ba8b5b1bef5075af87ea9be426193350330 /src
parent172a0119ee0a0bb6d50836c70936907c3eb71c9e (diff)
downloadingen-11e6d70077bd569dce5fda8faf5ebf8615be2cb0.tar.gz
ingen-11e6d70077bd569dce5fda8faf5ebf8615be2cb0.tar.bz2
ingen-11e6d70077bd569dce5fda8faf5ebf8615be2cb0.zip
Commit changes to allow move (broken revision)
git-svn-id: http://svn.drobilla.net/lad/grauph@53 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/libs/engine/LADSPAPlugin.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/libs/engine/LADSPAPlugin.cpp b/src/libs/engine/LADSPAPlugin.cpp
index 1c2b397e..37d66805 100644
--- a/src/libs/engine/LADSPAPlugin.cpp
+++ b/src/libs/engine/LADSPAPlugin.cpp
@@ -39,10 +39,6 @@ LADSPAPlugin::LADSPAPlugin(const string& path, size_t poly, Patch* parent, const
_instances(NULL)
{
assert(_descriptor != NULL);
-
- // Note that this may be changed by an overriding DSSIPlugin
- // ie do not assume _ports is all LADSPA plugin ports
- _num_ports = _descriptor->PortCount;
}
@@ -57,7 +53,9 @@ LADSPAPlugin::LADSPAPlugin(const string& path, size_t poly, Patch* parent, const
bool
LADSPAPlugin::instantiate()
{
- _ports = new Array<Port*>(_num_ports);
+ // Note that a DSSI plugin might tack more on to the end of this
+ if (!_ports)
+ _ports = new Array<Port*>(_descriptor->PortCount);
_instances = new LADSPA_Handle[_poly];