Fix MinGW-w64 compilation

Change-Id: I812b53e822947a9f85d6523722c6a4f9e57e0426
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
Jonathan Liu
2012-04-28 09:34:44 +10:00
committed by Qt by Nokia
parent a3b6eabd45
commit 641474ab10
4 changed files with 7 additions and 3 deletions

View File

@@ -56,7 +56,7 @@
#include "qaudiodeviceinfo_win32_p.h"
#include <dshow.h>
#if defined(Q_CC_MINGW)
#if defined(Q_CC_MINGW) && !defined(__MINGW64_VERSION_MAJOR)
extern GUID CLSID_AudioInputDeviceCategory;
@@ -83,7 +83,7 @@ DECLARE_INTERFACE_(IPropertyBag, IUnknown)
#endif /* __IPropertyBag_INTERFACE_DEFINED__ */
#endif//Q_CC_MINGW
#endif // defined(Q_CC_MINGW) && !defined(__MINGW64_VERSION_MAJOR)
QT_BEGIN_NAMESPACE

View File

@@ -67,5 +67,6 @@ include(video/video.pri)
mac {
LIBS += -framework AppKit -framework QuartzCore -framework QTKit
}
win32:LIBS += -luuid
HEADERS += $$PUBLIC_HEADERS $$PRIVATE_HEADERS

View File

@@ -29,5 +29,5 @@ SOURCES += \
SOURCES += $$PWD/dsvideowidgetcontrol.cpp
}
INCLUDEPATH += $(DXSDK_DIR)/include
*-msvc*:INCLUDEPATH += $(DXSDK_DIR)/include
LIBS += -lstrmiids -ldmoguids -luuid -lmsdmo -lole32 -loleaut32

View File

@@ -43,6 +43,9 @@
#include "directshowglobal.h"
#include <QtGui/QPalette>
#include <QtWidgets/QWidget>
Vmr9VideoWindowControl::Vmr9VideoWindowControl(QObject *parent)
: QVideoWindowControl(parent)
, m_filter(com_new<IBaseFilter>(CLSID_VideoMixingRenderer9, IID_IBaseFilter))