From dac2461ba66560c00efb43a12e35394a698b60f7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 6 Sep 2006 19:05:23 +0000 Subject: 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 --- src/libs/engine/LADSPANode.cpp | 2 +- src/libs/engine/events/DestroyEvent.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libs') 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 == "/") -- cgit v1.2.1