summaryrefslogtreecommitdiffstats
path: root/src/plugins/directshow/player/videosurfacefilter.cpp
diff options
context:
space:
mode:
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();