diff options
author | Yoann Lopes <yoann.lopes@theqtcompany.com> | 2016-10-07 15:34:53 +0300 |
---|---|---|
committer | Yoann Lopes <yoann.lopes@qt.io> | 2016-11-02 13:41:47 +0000 |
commit | 9df63fd62e1932a7d650f8d99c2b92947a05a9f4 (patch) | |
tree | 1072a72f04b3412940c685c34a5197ec1c110d1f /src/plugins/wmf/wmfserviceplugin.cpp | |
parent | 4e5eb169891fb52abe5683cb2d50f3ef280f1695 (diff) |
WMF: make it possible to build only the audio decode service
The WMF plugin can now be built without the media player service. That
enables the audio decode service even when DirectShow is used as media
player backend.
The default configuration on Windows is now:
Camera, MediaPlayer -> DirectShow
AudioDecode -> WMF
Change-Id: Ic6f3c85ed849e0c603719cfb03794e6abd2d52fa
Reviewed-by: Christian Stromme <christian.stromme@qt.io>
Diffstat (limited to 'src/plugins/wmf/wmfserviceplugin.cpp')
-rw-r--r-- | src/plugins/wmf/wmfserviceplugin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/wmf/wmfserviceplugin.cpp b/src/plugins/wmf/wmfserviceplugin.cpp index da7fedd96..385b45a3d 100644 --- a/src/plugins/wmf/wmfserviceplugin.cpp +++ b/src/plugins/wmf/wmfserviceplugin.cpp @@ -91,9 +91,11 @@ void WMFServicePlugin::release(QMediaService *service) QMediaServiceProviderHint::Features WMFServicePlugin::supportedFeatures( const QByteArray &service) const { +#ifdef QMEDIA_MEDIAFOUNDATION_PLAYER if (service == Q_MEDIASERVICE_MEDIAPLAYER) return QMediaServiceProviderHint::StreamPlayback; else +#endif return QMediaServiceProviderHint::Features(); } |