quartz: Make sure video window is actually destroyed.

This commit is contained in:
Maarten Lankhorst 2010-12-03 09:38:10 +01:00 committed by Alexandre Julliard
parent 6e7aff2544
commit 89161a8ded

View File

@ -678,7 +678,8 @@ static ULONG WINAPI VideoRendererInner_Release(IUnknown * iface)
{
IPin *pConnectedTo;
DestroyWindow(This->hWnd);
if (This->hWnd)
SendMessageW(This->hWnd, WM_CLOSE, 0, 0);
PostThreadMessageA(This->ThreadID, WM_QUIT, 0, 0);
WaitForSingleObject(This->hThread, INFINITE);
CloseHandle(This->hThread);