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>
This commit is contained in:
committed by
The Qt Project
parent
6eb192f047
commit
60eb27dfef
@@ -476,6 +476,13 @@ void MFPlayerSession::close()
|
||||
m_videoProbeMFT = 0;
|
||||
}
|
||||
|
||||
if (m_playerService->videoRendererControl()) {
|
||||
m_playerService->videoRendererControl()->releaseActivate();
|
||||
#ifndef Q_WS_SIMULATOR
|
||||
} else if (m_playerService->videoWindowControl()) {
|
||||
m_playerService->videoWindowControl()->releaseActivate();
|
||||
#endif
|
||||
}
|
||||
|
||||
if (m_session)
|
||||
m_session->Release();
|
||||
|
||||
Reference in New Issue
Block a user