aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/qmmp/decoder.cpp4
-rw-r--r--src/qmmp/effect.cpp5
-rw-r--r--src/qmmp/output.cpp5
-rw-r--r--src/qmmp/visual.cpp11
-rw-r--r--src/qmmpui/general.cpp5
5 files changed, 17 insertions, 13 deletions
diff --git a/src/qmmp/decoder.cpp b/src/qmmp/decoder.cpp
index 5bb2545ed..d056145de 100644
--- a/src/qmmp/decoder.cpp
+++ b/src/qmmp/decoder.cpp
@@ -73,9 +73,9 @@ static void checkFactories()
QPluginLoader loader(pluginsDir.absoluteFilePath(fileName));
QObject *plugin = loader.instance();
if (loader.isLoaded())
- {
qDebug("Decoder: plugin loaded - %s", qPrintable(fileName));
- }
+ else
+ qWarning("Decoder: %s", qPrintable(loader.errorString ()));
DecoderFactory *factory = 0;
if (plugin)
factory = qobject_cast<DecoderFactory *>(plugin);
diff --git a/src/qmmp/effect.cpp b/src/qmmp/effect.cpp
index c6d3ba0fb..fe4222bb6 100644
--- a/src/qmmp/effect.cpp
+++ b/src/qmmp/effect.cpp
@@ -74,9 +74,10 @@ static void checkFactories()
QPluginLoader loader(pluginsDir.absoluteFilePath(fileName));
QObject *plugin = loader.instance();
if (loader.isLoaded())
- {
qDebug("Effect: plugin loaded - %s", qPrintable(fileName));
- }
+ else
+ qWarning("Effect: %s", qPrintable(loader.errorString ()));
+
EffectFactory *factory = 0;
if (plugin)
factory = qobject_cast<EffectFactory *>(plugin);
diff --git a/src/qmmp/output.cpp b/src/qmmp/output.cpp
index 1de77b9d7..7c64c66ef 100644
--- a/src/qmmp/output.cpp
+++ b/src/qmmp/output.cpp
@@ -36,9 +36,10 @@ static void checkFactories()
QPluginLoader loader ( pluginsDir.absoluteFilePath ( fileName ) );
QObject *plugin = loader.instance();
if ( loader.isLoaded() )
- {
qDebug ( "Output: plugin loaded - %s", qPrintable ( fileName ) );
- }
+ else
+ qWarning("Output: %s", qPrintable(loader.errorString ()));
+
OutputFactory *factory = 0;
if ( plugin )
factory = qobject_cast<OutputFactory *> ( plugin );
diff --git a/src/qmmp/visual.cpp b/src/qmmp/visual.cpp
index ce5e8a982..cabf8f5bc 100644
--- a/src/qmmp/visual.cpp
+++ b/src/qmmp/visual.cpp
@@ -48,9 +48,10 @@ static void checkFactories()
QPluginLoader loader(pluginsDir.absoluteFilePath(fileName));
QObject *plugin = loader.instance();
if (loader.isLoaded())
- {
qDebug("Visual: plugin loaded - %s", qPrintable(fileName));
- }
+ else
+ qWarning("Visual: %s", qPrintable(loader.errorString ()));
+
VisualFactory *factory = 0;
if (plugin)
factory = qobject_cast<VisualFactory *>(plugin);
@@ -116,14 +117,14 @@ QStringList Visual::visualFiles()
void Visual::setEnabled(VisualFactory* factory, bool enable)
{
checkFactories();
- if(!factories->contains(factory))
+ if (!factories->contains(factory))
return;
QString name = files.at(factories->indexOf(factory)).section('/',-1);
QSettings settings ( QDir::homePath() +"/.qmmp/qmmprc", QSettings::IniFormat );
QStringList visList = settings.value("Visualization/plugin_files").toStringList();
- if(enable)
+ if (enable)
{
if (!visList.contains(name))
visList << name;
@@ -136,7 +137,7 @@ void Visual::setEnabled(VisualFactory* factory, bool enable)
bool Visual::isEnabled(VisualFactory* factory)
{
checkFactories();
- if(!factories->contains(factory))
+ if (!factories->contains(factory))
return FALSE;
QString name = files.at(factories->indexOf(factory)).section('/',-1);
QSettings settings ( QDir::homePath() +"/.qmmp/qmmprc", QSettings::IniFormat );
diff --git a/src/qmmpui/general.cpp b/src/qmmpui/general.cpp
index e072344a0..fed8221b4 100644
--- a/src/qmmpui/general.cpp
+++ b/src/qmmpui/general.cpp
@@ -45,9 +45,10 @@ static void checkFactories()
QPluginLoader loader(pluginsDir.absoluteFilePath(fileName));
QObject *plugin = loader.instance();
if (loader.isLoaded())
- {
qDebug("General: plugin loaded - %s", qPrintable(fileName));
- }
+ else
+ qWarning("General: %s", qPrintable(loader.errorString ()));
+
GeneralFactory *factory = 0;
if (plugin)
factory = qobject_cast<GeneralFactory *>(plugin);