summaryrefslogtreecommitdiffstats
path: root/src/plugins/directshow/player/videosurfacefilter.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2013-02-14 12:09:58 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-14 13:25:04 +0100
commit4fc974fdefebb92bc22d87700c40d00a019e04a6 (patch)
tree19ef7bcc217ceeb62924a20407debf633248c085 /src/plugins/directshow/player/videosurfacefilter.cpp
parent033d5859d2263c4bb411d1945c661358d82e7f63 (diff)
Fix MinGW-warnings about mismatched types.
Change-Id: I6170e3aa49f5b60ba68c1ef5bb2c6c7ec6688060 Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
Diffstat (limited to 'src/plugins/directshow/player/videosurfacefilter.cpp')
-rw-r--r--src/plugins/directshow/player/videosurfacefilter.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/directshow/player/videosurfacefilter.cpp b/src/plugins/directshow/player/videosurfacefilter.cpp
index 13438857f..d6e48d866 100644
--- a/src/plugins/directshow/player/videosurfacefilter.cpp
+++ b/src/plugins/directshow/player/videosurfacefilter.cpp
@@ -550,19 +550,20 @@ HRESULT VideoSurfaceFilter::cloneMediaType(int token, int index, IEnumMediaTypes
void VideoSurfaceFilter::customEvent(QEvent *event)
{
- if (event->type() == StartSurface) {
+ const int type = event->type();
+ if (type == StartSurface) {
QMutexLocker locker(&m_mutex);
m_startResult = start();
m_wait.wakeAll();
- } else if (event->type() == StopSurface) {
+ } else if (type == StopSurface) {
QMutexLocker locker(&m_mutex);
stop();
m_wait.wakeAll();
- } else if (event->type() == FlushSurface) {
+ } else if (type == FlushSurface) {
QMutexLocker locker(&m_mutex);
flush();