LadspaManager: print error string when failing to load LADSPA library

In order to ease debugging of problems with the LADSPA library loader
print QLibrary::errorString() if loading a library fails.
This commit is contained in:
Tobias Doerffel
2011-01-16 18:50:01 +01:00
parent 7b7dc0bfb2
commit 4851839327

View File

@@ -3,6 +3,7 @@
* of ladspa plugins
*
* Copyright (c) 2005-2008 Danny McRae <khjklujn@netscape.net>
* Copyright (c) 2011 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -23,7 +24,7 @@
*
*/
#include <QtCore/QDebug>
#include <QtCore/QDir>
#include <QtCore/QFileInfo>
#include <QtCore/QLibrary>
@@ -83,6 +84,10 @@ ladspaManager::ladspaManager()
f.fileName() );
}
}
else
{
qWarning() << plugin_lib.errorString();
}
}
}