[vlc-devel] [PATCH] win32: the vout lock is recursive

Steve Lhomme robux4 at videolabs.io
Sun Jun 5 13:28:15 CEST 2016


given by default they're all recursive it's ok, but when we detect possible
issues it's not.
---
 modules/video_output/win32/events.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/win32/events.c b/modules/video_output/win32/events.c
index c41fd89..22ad40e 100644
--- a/modules/video_output/win32/events.c
+++ b/modules/video_output/win32/events.c
@@ -467,7 +467,7 @@ event_thread_t *EventThreadCreate( vout_display_t *vd)
         return NULL;
 
     p_event->vd = vd;
-    vlc_mutex_init( &p_event->lock );
+    vlc_mutex_init_recursive( &p_event->lock );
     vlc_cond_init( &p_event->wait );
 
     p_event->is_cursor_hidden = false;
-- 
2.7.0



More information about the vlc-devel mailing list