[patch] get useful output when debugging loading of plugins

Håvard Wall haavardw at ifi.uio.no
Mon Jun 18 14:31:15 CEST 2007


This patch makes sure you get some useful output when running with 
PHONON_DEBUG=1 and the plugin files cannot be found. The documentation 
explicitly says that !dir.exists() will give an empty string in 
dir.canonicalPath().

Regards,
hw

--

Index: factory.cpp
===================================================================
--- factory.cpp (revision 677025)
+++ factory.cpp (working copy)
@@ -65,7 +65,7 @@
             libPath += suffix;
             const QDir dir(libPath);
             if (!dir.exists()) {
-                pDebug() << Q_FUNC_INFO << dir.canonicalPath() << "does not 
exist";
+                pDebug() << Q_FUNC_INFO << dir.absolutePath() << "does not 
exist";
                 continue;
             }
             QLibrary pluginLib(libPath + QLatin1String("/xine"));
@@ -253,7 +253,7 @@
             libPath += suffix;
             const QDir dir(libPath);
             if (!dir.exists()) {
-                pDebug() << Q_FUNC_INFO << dir.canonicalPath() << "does not 
exist";
+                pDebug() << Q_FUNC_INFO << dir.absolutePath() << "does not 
exist";
                 continue;
             }
             QLibrary pluginLib(libPath + QLatin1String("/kde"));


More information about the Phonon-backends mailing list