From 11e6d70077bd569dce5fda8faf5ebf8615be2cb0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 18 Jun 2006 18:13:06 +0000 Subject: Commit changes to allow move (broken revision) git-svn-id: http://svn.drobilla.net/lad/grauph@53 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/LADSPAPlugin.cpp | 8 +++----- 1 file 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(_num_ports); + // Note that a DSSI plugin might tack more on to the end of this + if (!_ports) + _ports = new Array(_descriptor->PortCount); _instances = new LADSPA_Handle[_poly]; -- cgit v1.2.1