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:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user