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 02:52:23 (GMT)
committerAndrew den Exter <andrew.den-exter@nokia.com>2010-02-25 02:52:23 (GMT)
commitf2d89dee45e2f08e8e7613c18660c5c3e133c0ff (patch)
tree502615ed31e26288129cb5a00082b0d926e232a8 /src/plugins/mediaservices/directshow/mediaplayer/directshowiosource.cpp
parente9f3edcb0a0223b90606108993999ad3cb37af9f (diff)
downloadQt-f2d89dee45e2f08e8e7613c18660c5c3e133c0ff.zip
Qt-f2d89dee45e2f08e8e7613c18660c5c3e133c0ff.tar.gz
Qt-f2d89dee45e2f08e8e7613c18660c5c3e133c0ff.tar.bz2
Remove all uses of __uuidof from the Direct Show media service.
It's unnecessary and not supported on all compilers. Reviewed-by: Justin McPherson
Diffstat (limited to 'src/plugins/mediaservices/directshow/mediaplayer/directshowiosource.cpp')
-rw-r--r--src/plugins/mediaservices/directshow/mediaplayer/directshowiosource.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/mediaservices/directshow/mediaplayer/directshowiosource.cpp b/src/plugins/mediaservices/directshow/mediaplayer/directshowiosource.cpp
index 1dca465..15bfea5 100644
--- a/src/plugins/mediaservices/directshow/mediaplayer/directshowiosource.cpp
+++ b/src/plugins/mediaservices/directshow/mediaplayer/directshowiosource.cpp
@@ -414,8 +414,8 @@ HRESULT DirectShowIOSource::tryConnect(IPin *pin, const AM_MEDIA_TYPE *type)
} else if (!m_allocator) {
hr = VFW_E_NO_TRANSPORT;
- if (IMemInputPin *memPin = com_cast<IMemInputPin>(pin)) {
- if ((m_allocator = com_new<IMemAllocator>(CLSID_MemoryAllocator))) {
+ if (IMemInputPin *memPin = com_cast<IMemInputPin>(pin, IID_IMemInputPin)) {
+ if ((m_allocator = com_new<IMemAllocator>(CLSID_MemoryAllocator, IID_IMemAllocator))) {
ALLOCATOR_PROPERTIES properties;
if (memPin->GetAllocatorRequirements(&properties) == S_OK
|| m_allocator->GetProperties(&properties) == S_OK) {