From c6b1d62cdb416a0a0c9dd94936e44545f23a688c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 4 Jul 2007 00:13:35 +0000 Subject: Fix crash on Ingen patch save (mismatched RDF type enums). Disable some excessive debug print output. git-svn-id: http://svn.drobilla.net/lad/ingen@566 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/LADSPANode.cpp | 7 +++++-- src/libs/engine/NodeFactory.cpp | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/libs/engine/LADSPANode.cpp b/src/libs/engine/LADSPANode.cpp index 713423cc..957c49dd 100644 --- a/src/libs/engine/LADSPANode.cpp +++ b/src/libs/engine/LADSPANode.cpp @@ -75,9 +75,12 @@ LADSPANode::instantiate() Port* port = NULL; for (size_t j=0; j < _descriptor->PortCount; ++j) { - cerr << "Name before: " << _descriptor->PortNames[j] << endl; port_name = Path::nameify(_descriptor->PortNames[j]); - cerr << "Name after: " << port_name << endl; + + if (_descriptor->PortNames[j] != port_name) + cerr << "WARNING: Translated LADSPA port name: " << + _descriptor->PortNames[j] << " -> " << port_name << endl; + string::size_type slash_index; // Name mangling, to guarantee port names are unique diff --git a/src/libs/engine/NodeFactory.cpp b/src/libs/engine/NodeFactory.cpp index 28afb67a..4e91ed02 100644 --- a/src/libs/engine/NodeFactory.cpp +++ b/src/libs/engine/NodeFactory.cpp @@ -272,7 +272,7 @@ NodeFactory::load_lv2_plugins() { SLV2Plugins plugins = slv2_world_get_all_plugins(_world); - cerr << "[NodeFactory] Found " << slv2_plugins_size(plugins) << " LV2 plugins:" << endl; + //cerr << "[NodeFactory] Found " << slv2_plugins_size(plugins) << " LV2 plugins:" << endl; for (unsigned i=0; i < slv2_plugins_size(plugins); ++i) { @@ -280,7 +280,7 @@ NodeFactory::load_lv2_plugins() const char* uri = (const char*)slv2_plugin_get_uri(lv2_plug); assert(uri); - cerr << "\t" << uri << endl; + //cerr << "\t" << uri << endl; Plugin* plug = NULL; -- cgit v1.2.1