From 48518393276a00ac9d8f497f93cb68ceba12a680 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sun, 16 Jan 2011 18:50:01 +0100 Subject: [PATCH] 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. --- src/core/ladspa_manager.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/core/ladspa_manager.cpp b/src/core/ladspa_manager.cpp index 03ee7e82f..9792eb286 100644 --- a/src/core/ladspa_manager.cpp +++ b/src/core/ladspa_manager.cpp @@ -3,6 +3,7 @@ * of ladspa plugins * * Copyright (c) 2005-2008 Danny McRae + * Copyright (c) 2011 Tobias Doerffel * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * @@ -23,7 +24,7 @@ * */ - +#include #include #include #include @@ -83,6 +84,10 @@ ladspaManager::ladspaManager() f.fileName() ); } } + else + { + qWarning() << plugin_lib.errorString(); + } } }