diff options
author | Andrew den Exter <andrew.den-exter@nokia.com> | 2010-02-03 01:50:12 (GMT) |
---|---|---|
committer | Andrew den Exter <andrew.den-exter@nokia.com> | 2010-02-03 01:50:12 (GMT) |
commit | 3cd93dfb61eee61523af02cfc117c53ef9ee1336 (patch) | |
tree | 84ece0e9809659e3e136602211fdc05b6512d26a /src/plugins/mediaservices/directshow/mediaplayer/directshowplayerservice.cpp | |
parent | 3c90f04c31d266a640ccf3b187d6971f7ade7500 (diff) | |
download | Qt-3cd93dfb61eee61523af02cfc117c53ef9ee1336.zip Qt-3cd93dfb61eee61523af02cfc117c53ef9ee1336.tar.gz Qt-3cd93dfb61eee61523af02cfc117c53ef9ee1336.tar.bz2 |
Enable building the Direct Show plugin without the Window Media SDK.
Diffstat (limited to 'src/plugins/mediaservices/directshow/mediaplayer/directshowplayerservice.cpp')
-rw-r--r-- | src/plugins/mediaservices/directshow/mediaplayer/directshowplayerservice.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/mediaservices/directshow/mediaplayer/directshowplayerservice.cpp b/src/plugins/mediaservices/directshow/mediaplayer/directshowplayerservice.cpp index a3362db..fdbee81 100644 --- a/src/plugins/mediaservices/directshow/mediaplayer/directshowplayerservice.cpp +++ b/src/plugins/mediaservices/directshow/mediaplayer/directshowplayerservice.cpp @@ -222,6 +222,7 @@ void DirectShowPlayerService::doSetUrlSource(QMutexLocker *locker) HRESULT hr = E_FAIL; +#ifndef QT_NO_WMSDK if (url.scheme() == QLatin1String("http") || url.scheme() == QLatin1String("https")) { if (IFileSourceFilter *fileSource = com_new<IFileSourceFilter>(CLSID_WMAsfReader)) { locker->unlock(); @@ -242,10 +243,13 @@ void DirectShowPlayerService::doSetUrlSource(QMutexLocker *locker) } if (!SUCCEEDED(hr)) { +#endif locker->unlock(); hr = m_graph->AddSourceFilter(url.toString().utf16(), L"Source", &source); locker->relock(); +#ifndef QT_NO_WMSDK } +#endif if (SUCCEEDED(hr)) { m_executedTasks = SetSource; @@ -807,6 +811,7 @@ void DirectShowPlayerService::doSeek(QMutexLocker *locker) int DirectShowPlayerService::bufferStatus() const { +#ifndef QT_NO_WMSDK QMutexLocker locker(const_cast<QMutex *>(&m_mutex)); if (IWMReaderAdvanced2 *reader = com_cast<IWMReaderAdvanced2>(m_source)) { @@ -819,6 +824,9 @@ int DirectShowPlayerService::bufferStatus() const } else { return 0; } +#else + return 0; +#endif } void DirectShowPlayerService::setAudioOutput(IBaseFilter *filter) |