# HG changeset patch # User Chris Cannam # Date 1177943499 0 # Node ID d4a33cdca86fb0433d52c5a6bc0b8eea832f2dcf # Parent dc46851837d6ad10fa0144cea22a545e5b263868 * remove more debug output diff -r dc46851837d6 -r d4a33cdca86f plugin/LADSPAPluginFactory.cpp --- a/plugin/LADSPAPluginFactory.cpp Mon Apr 30 13:36:23 2007 +0000 +++ b/plugin/LADSPAPluginFactory.cpp Mon Apr 30 14:31:39 2007 +0000 @@ -33,6 +33,8 @@ #include "system/System.h" #include "base/Preferences.h" +//#define DEBUG_LADSPA_PLUGIN_FACTORY 1 + #ifdef HAVE_LRDF #include "lrdf.h" #endif // HAVE_LRDF @@ -325,8 +327,10 @@ m_instances.insert(instance); +#ifdef DEBUG_LADSPA_PLUGIN_FACTORY std::cerr << "LADSPAPluginFactory::instantiatePlugin(" << identifier.toStdString() << ": now have " << m_instances.size() << " instances" << std::endl; +#endif return instance; } @@ -356,7 +360,9 @@ QString itype, isoname, ilabel; PluginIdentifier::parseIdentifier((*ii)->getPluginIdentifier(), itype, isoname, ilabel); if (isoname == soname) { +#ifdef DEBUG_LADSPA_PLUGIN_FACTORY std::cerr << "LADSPAPluginFactory::releasePlugin: dll " << soname.toStdString() << " is still in use for plugin " << ilabel.toStdString() << std::endl; +#endif stillInUse = true; break; } @@ -364,13 +370,17 @@ if (!stillInUse) { if (soname != PluginIdentifier::BUILTIN_PLUGIN_SONAME) { +#ifdef DEBUG_LADSPA_PLUGIN_FACTORY std::cerr << "LADSPAPluginFactory::releasePlugin: dll " << soname.toStdString() << " no longer in use, unloading" << std::endl; +#endif unloadLibrary(soname); } } +#ifdef DEBUG_LADSPA_PLUGIN_FACTORY std::cerr << "LADSPAPluginFactory::releasePlugin(" << identifier.toStdString() << ": now have " << m_instances.size() << " instances" << std::endl; +#endif } const LADSPA_Descriptor * @@ -434,14 +444,18 @@ for (std::vector::iterator i = pathList.begin(); i != pathList.end(); ++i) { +#ifdef DEBUG_LADSPA_PLUGIN_FACTORY std::cerr << "Looking at: " << (*i).toStdString() << std::endl; +#endif QDir dir(*i, PLUGIN_GLOB, QDir::Name | QDir::IgnoreCase, QDir::Files | QDir::Readable); if (QFileInfo(dir.filePath(fileName)).exists()) { +#ifdef DEBUG_LADSPA_PLUGIN_FACTORY std::cerr << "Loading: " << fileName.toStdString() << std::endl; +#endif libraryHandle = DLOPEN(dir.filePath(fileName), RTLD_NOW); if (libraryHandle) { m_libraryHandles[soName] = libraryHandle; @@ -452,7 +466,9 @@ for (unsigned int j = 0; j < dir.count(); ++j) { QString file = dir.filePath(dir[j]); if (QFileInfo(file).baseName() == base) { +#ifdef DEBUG_LADSPA_PLUGIN_FACTORY std::cerr << "Loading: " << file.toStdString() << std::endl; +#endif libraryHandle = DLOPEN(file, RTLD_NOW); if (libraryHandle) { m_libraryHandles[soName] = libraryHandle; diff -r dc46851837d6 -r d4a33cdca86f plugin/PluginXml.cpp --- a/plugin/PluginXml.cpp Mon Apr 30 13:36:23 2007 +0000 +++ b/plugin/PluginXml.cpp Mon Apr 30 14:31:39 2007 +0000 @@ -180,8 +180,8 @@ bool ok; float value = attrs.value(pname).trimmed().toFloat(&ok); if (ok) { - std::cerr << "PluginXml::setParameters: setting parameter \"" - << i->identifier << "\" to value " << value << std::endl; +// std::cerr << "PluginXml::setParameters: setting parameter \"" +// << i->identifier << "\" to value " << value << std::endl; m_plugin->setParameter(i->identifier, value); } else { std::cerr << "WARNING: PluginXml::setParameters: Invalid value \"" << attrs.value(pname).toStdString() << "\" for parameter \"" << i->identifier << "\" (attribute \"" << pname.toStdString() << "\")" << std::endl;