summaryrefslogtreecommitdiffstats
path: root/src/plugins/mediaservices/directshow/mediaplayer/directshoweventloop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/mediaservices/directshow/mediaplayer/directshoweventloop.cpp')
-rw-r--r--src/plugins/mediaservices/directshow/mediaplayer/directshoweventloop.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/mediaservices/directshow/mediaplayer/directshoweventloop.cpp b/src/plugins/mediaservices/directshow/mediaplayer/directshoweventloop.cpp
index 4f9a19d..07541c2 100644
--- a/src/plugins/mediaservices/directshow/mediaplayer/directshoweventloop.cpp
+++ b/src/plugins/mediaservices/directshow/mediaplayer/directshoweventloop.cpp
@@ -148,13 +148,14 @@ void DirectShowEventLoop::processEvents()
DirectShowPostedEvent *post = m_postsHead;
m_postsHead = m_postsHead->next;
+ if (!m_postsHead)
+ m_postsTail = 0;
+
locker.unlock();
QCoreApplication::sendEvent(post->receiver, post->event);
delete post;
locker.relock();
}
-
- m_postsTail = 0;
}
QT_END_NAMESPACE