<html><head></head><body>LGTM<br><br><div class="gmail_quote">Le 4 février 2020 15:57:05 GMT+02:00, Steve Lhomme <robux4@ycbcr.xyz> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">The WM_CLOSE posted just above will call DestroyWindow in the event-loop thread.<br><a href="https://docs.microsoft.com/en-us/windows/win32/winmsg/wm-close">https://docs.microsoft.com/en-us/windows/win32/winmsg/wm-close</a><br><br>Also DestroyWindow should be called from the thread that created the HWND, which<br>is the EventThread, not the thread with the Open/Close.<br>See remarks in <a href="https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-destroywindow">https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-destroywindow</a><hr> modules/video_output/win32/window.c | 2 --<br> 1 file changed, 2 deletions(-)<br><br>diff --git a/modules/video_output/win32/window.c b/modules/video_output/win32/window.c<br>index 7a91c5dc05d..e53380de329 100644<br>--- a/modules/video_output/win32/window.c<br>+++ b/modules/video_output/win32/window.c<br>@@ -493,8 +493,6 @@ static void Close(vout_window_t *wnd)<br>             vlc_cond_wait( &sys->wait, &sys->lock );<br>         }<br>         vlc_mutex_unlock( &sys->lock );<br>-<br>-        DestroyWindow( sys->hwnd );<br>     }<br>     vlc_join(sys->thread, NULL);<br>     vlc_mutex_destroy( &sys->lock );</pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>