[vlc-devel] [PATCH 1/3] win32: window: add missing lock

Thomas Guillem thomas at gllm.fr
Mon May 6 12:07:06 CEST 2019


---
 modules/video_output/win32/window.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/video_output/win32/window.c b/modules/video_output/win32/window.c
index ff25b11dde..bb0b117cee 100644
--- a/modules/video_output/win32/window.c
+++ b/modules/video_output/win32/window.c
@@ -690,8 +690,10 @@ static void *EventThread( void *p_this )
         TranslateMessage(&msg);
         DispatchMessage(&msg);
     }
+    vlc_mutex_lock( &sys->lock );
     sys->b_done = true;
     vlc_cond_signal( &sys->wait );
+    vlc_mutex_unlock( &sys->lock );
     vlc_restorecancel(canc);
     return NULL;
 }
-- 
2.20.1



More information about the vlc-devel mailing list