summaryrefslogtreecommitdiffstats
path: root/src/libs
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-09-06 19:05:23 +0000
committerDavid Robillard <d@drobilla.net>2006-09-06 19:05:23 +0000
commitdac2461ba66560c00efb43a12e35394a698b60f7 (patch)
treeaff258db86692a028d544045b8a26e2df4b78a19 /src/libs
parent32672ca258231aea42c8868357b55ac46397084f (diff)
downloadingen-dac2461ba66560c00efb43a12e35394a698b60f7.tar.gz
ingen-dac2461ba66560c00efb43a12e35394a698b60f7.tar.bz2
ingen-dac2461ba66560c00efb43a12e35394a698b60f7.zip
Fixed LADSPA plugins with invalid OSC path port names (eg containing spaces).
Fixed node destruction. git-svn-id: http://svn.drobilla.net/lad/ingen@114 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs')
-rw-r--r--src/libs/engine/LADSPANode.cpp2
-rw-r--r--src/libs/engine/events/DestroyEvent.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libs/engine/LADSPANode.cpp b/src/libs/engine/LADSPANode.cpp
index e6003d90..0be82819 100644
--- a/src/libs/engine/LADSPANode.cpp
+++ b/src/libs/engine/LADSPANode.cpp
@@ -75,7 +75,7 @@ LADSPANode::instantiate()
Port* port = NULL;
for (size_t j=0; j < _descriptor->PortCount; ++j) {
- port_name = _descriptor->PortNames[j];
+ port_name = Path::nameify(_descriptor->PortNames[j]);
string::size_type slash_index;
// Name mangling, to guarantee port names are unique
diff --git a/src/libs/engine/events/DestroyEvent.cpp b/src/libs/engine/events/DestroyEvent.cpp
index d373389b..d55a2935 100644
--- a/src/libs/engine/events/DestroyEvent.cpp
+++ b/src/libs/engine/events/DestroyEvent.cpp
@@ -138,8 +138,8 @@ DestroyEvent::execute(SampleCount offset)
void
DestroyEvent::post_process()
{
- assert(_source);
- _source->unblock();
+ if (_source)
+ _source->unblock();
if (m_node == NULL) {
if (m_path == "/")