diff options
author | Justin McPherson <justin.mcpherson@nokia.com> | 2010-01-19 03:54:25 (GMT) |
---|---|---|
committer | Justin McPherson <justin.mcpherson@nokia.com> | 2010-01-19 03:54:25 (GMT) |
commit | 65bca1935008012d096872647dc02c124abcab75 (patch) | |
tree | 77373a7d1ede8f85bb8434cbd96d1688e26b5465 /src/plugins/mediaservices/qt7/qt7serviceplugin.mm | |
parent | 07144fabe351f3a6021a2d213cfdba7ee55602a0 (diff) | |
download | Qt-65bca1935008012d096872647dc02c124abcab75.zip Qt-65bca1935008012d096872647dc02c124abcab75.tar.gz Qt-65bca1935008012d096872647dc02c124abcab75.tar.bz2 |
Multimedia; reorganize qt7 mediaservice provider.
Diffstat (limited to 'src/plugins/mediaservices/qt7/qt7serviceplugin.mm')
-rw-r--r-- | src/plugins/mediaservices/qt7/qt7serviceplugin.mm | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/plugins/mediaservices/qt7/qt7serviceplugin.mm b/src/plugins/mediaservices/qt7/qt7serviceplugin.mm index 49ae8e0..3e2a2a6 100644 --- a/src/plugins/mediaservices/qt7/qt7serviceplugin.mm +++ b/src/plugins/mediaservices/qt7/qt7serviceplugin.mm @@ -51,16 +51,20 @@ QT_BEGIN_NAMESPACE QStringList QT7ServicePlugin::keys() const { - return QStringList() << QLatin1String(Q_MEDIASERVICE_MEDIAPLAYER); + return QStringList() +#ifdef Q_MEDIASERVICE_MEDIAPLAYER_AVAILABLE + << QLatin1String(Q_MEDIASERVICE_MEDIAPLAYER); +#endif } QMediaService* QT7ServicePlugin::create(QString const& key) { - qDebug() << "QT7ServicePlugin::create" << key; +#ifdef Q_MEDIASERVICE_MEDIAPLAYER_AVAILABLE if (key == QLatin1String(Q_MEDIASERVICE_MEDIAPLAYER)) return new QT7PlayerService; +#endif - qDebug() << "unsupported key:" << key; + qWarning() << "Attempt to create unknown service with key" << key; return 0; } |