summaryrefslogtreecommitdiffstats
path: root/src/plugins/mediaservices/directshow/mediaplayer/directshowiosource.cpp
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2010-02-25 07:32:40 (GMT)
committerAndrew den Exter <andrew.den-exter@nokia.com>2010-02-25 07:32:40 (GMT)
commit4124bff7eb55ca2026bb89198950991a0804d0e6 (patch)
treee900aa7dd7eee878e0914fd410e3cde44bb57465 /src/plugins/mediaservices/directshow/mediaplayer/directshowiosource.cpp
parent44accdad194251062be74aeafac2cc9d856df479 (diff)
downloadQt-4124bff7eb55ca2026bb89198950991a0804d0e6.zip
Qt-4124bff7eb55ca2026bb89198950991a0804d0e6.tar.gz
Qt-4124bff7eb55ca2026bb89198950991a0804d0e6.tar.bz2
Make the Direct Show media service compile with mingw.
There a number of interfaces and guid constants used by the media service that aren't defined by mingw. Define these locally. Reviewed-by: Justin McPherson
Diffstat (limited to 'src/plugins/mediaservices/directshow/mediaplayer/directshowiosource.cpp')
-rw-r--r--src/plugins/mediaservices/directshow/mediaplayer/directshowiosource.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/mediaservices/directshow/mediaplayer/directshowiosource.cpp b/src/plugins/mediaservices/directshow/mediaplayer/directshowiosource.cpp
index 15bfea5..7b66d56 100644
--- a/src/plugins/mediaservices/directshow/mediaplayer/directshowiosource.cpp
+++ b/src/plugins/mediaservices/directshow/mediaplayer/directshowiosource.cpp
@@ -121,6 +121,10 @@ void DirectShowIOSource::setAllocator(IMemAllocator *allocator)
// IUnknown
HRESULT DirectShowIOSource::QueryInterface(REFIID riid, void **ppvObject)
{
+ // 2dd74950-a890-11d1-abe8-00a0c905f375
+ static const GUID iid_IAmFilterMiscFlags = {
+ 0x2dd74950, 0xa890, 0x11d1, {0xab, 0xe8, 0x00, 0xa0, 0xc9, 0x05, 0xf3, 0x75}};
+
if (!ppvObject) {
return E_POINTER;
} else if (riid == IID_IUnknown
@@ -128,7 +132,7 @@ HRESULT DirectShowIOSource::QueryInterface(REFIID riid, void **ppvObject)
|| riid == IID_IMediaFilter
|| riid == IID_IBaseFilter) {
*ppvObject = static_cast<IBaseFilter *>(this);
- } else if (riid == IID_IAMFilterMiscFlags) {
+ } else if (riid == iid_IAmFilterMiscFlags) {
*ppvObject = static_cast<IAMFilterMiscFlags *>(this);
} else if (riid == IID_IPin) {
*ppvObject = static_cast<IPin *>(this);