summaryrefslogtreecommitdiffstats
path: root/src/multimedia
diff options
context:
space:
mode:
authorJustin McPherson <justin.mcpherson@nokia.com>2010-04-27 07:00:09 (GMT)
committerJustin McPherson <justin.mcpherson@nokia.com>2010-04-27 07:18:23 (GMT)
commitc9a21dbe93fc681890e37322c86020475843cf40 (patch)
treef500c7371cc2e9a13a4ed84c0a3fcafae6d934f7 /src/multimedia
parent38e8d25a39b8c4f3d91e880dd9259d06dcf5799e (diff)
downloadQt-c9a21dbe93fc681890e37322c86020475843cf40.zip
Qt-c9a21dbe93fc681890e37322c86020475843cf40.tar.gz
Qt-c9a21dbe93fc681890e37322c86020475843cf40.tar.bz2
MediaServices; Don't look at the debug info when looking for plugins.
Reviewed-by:Dmytro Poplavskiy
Diffstat (limited to 'src/multimedia')
-rw-r--r--src/multimedia/mediaservices/base/qmediapluginloader.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/multimedia/mediaservices/base/qmediapluginloader.cpp b/src/multimedia/mediaservices/base/qmediapluginloader.cpp
index d6da0ba..8b0ddf4 100644
--- a/src/multimedia/mediaservices/base/qmediapluginloader.cpp
+++ b/src/multimedia/mediaservices/base/qmediapluginloader.cpp
@@ -108,7 +108,11 @@ void QMediaPluginLoader::load()
if (!pluginDir.exists())
continue;
- foreach (QString pluginLib, pluginDir.entryList(QDir::Files)) {
+ foreach (const QString &pluginLib, pluginDir.entryList(QDir::Files)) {
+#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
+ if (pluginLib.endsWith(QLatin1String(".debug")))
+ continue;
+#endif
QPluginLoader loader(pluginPathName + pluginLib);
QObject *o = loader.instance();