diff options
author | Yoann Lopes <yoann.lopes@digia.com> | 2012-12-18 22:16:13 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-01-07 09:34:43 +0100 |
commit | 60eb27dfef8de1a737e4dca99d13cef8a9876af6 (patch) | |
tree | ba09d2f153f587e6ff6374925b2a40fc717e39e8 /src/plugins/wmf/player/evr9videowindowcontrol.cpp | |
parent | 6eb192f047123079bcdfb45ca6da8f01cb97b90c (diff) |
WMF: release video controls before releasing the session
For the VideoRendererControl, also stop the video surface at the same
time.
This fixes a crash when changing video.
Change-Id: I49484f8b277c345dafb3e5947cf5d23df15546f3
Reviewed-by: Jason Barron <jason@cutehacks.com>
Diffstat (limited to 'src/plugins/wmf/player/evr9videowindowcontrol.cpp')
-rw-r--r-- | src/plugins/wmf/player/evr9videowindowcontrol.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/wmf/player/evr9videowindowcontrol.cpp b/src/plugins/wmf/player/evr9videowindowcontrol.cpp index 7f1c71332..b15eef15e 100644 --- a/src/plugins/wmf/player/evr9videowindowcontrol.cpp +++ b/src/plugins/wmf/player/evr9videowindowcontrol.cpp @@ -85,6 +85,11 @@ void Evr9VideoWindowControl::clear() m_currentActivate = NULL; } +void Evr9VideoWindowControl::releaseActivate() +{ + clear(); +} + WId Evr9VideoWindowControl::winId() const { return m_windowId; |