[vlc-devel] [PATCH] win32:vout_window: remove uneeded DestroyWindow
Rémi Denis-Courmont
remi at remlab.net
Tue Feb 4 15:52:27 CET 2020
LGTM
Le 4 février 2020 15:57:05 GMT+02:00, Steve Lhomme <robux4 at ycbcr.xyz> a écrit :
>The WM_CLOSE posted just above will call DestroyWindow in the
>event-loop thread.
>https://docs.microsoft.com/en-us/windows/win32/winmsg/wm-close
>
>Also DestroyWindow should be called from the thread that created the
>HWND, which
>is the EventThread, not the thread with the Open/Close.
>See remarks in
>https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-destroywindow
>---
> modules/video_output/win32/window.c | 2 --
> 1 file changed, 2 deletions(-)
>
>diff --git a/modules/video_output/win32/window.c
>b/modules/video_output/win32/window.c
>index 7a91c5dc05d..e53380de329 100644
>--- a/modules/video_output/win32/window.c
>+++ b/modules/video_output/win32/window.c
>@@ -493,8 +493,6 @@ static void Close(vout_window_t *wnd)
> vlc_cond_wait( &sys->wait, &sys->lock );
> }
> vlc_mutex_unlock( &sys->lock );
>-
>- DestroyWindow( sys->hwnd );
> }
> vlc_join(sys->thread, NULL);
> vlc_mutex_destroy( &sys->lock );
>--
>2.17.1
>
>_______________________________________________
>vlc-devel mailing list
>To unsubscribe or modify your subscription options:
>https://mailman.videolan.org/listinfo/vlc-devel
--
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20200204/28b1afa2/attachment.html>
More information about the vlc-devel
mailing list