Direct3D: don't forget to initialize the mutex
authorGeoffroy Couprie <geal@videolan.org>
Sat, 12 Sep 2009 14:34:12 +0000 (16:34 +0200)
committerGeoffroy Couprie <geal@videolan.org>
Sat, 12 Sep 2009 15:01:10 +0000 (17:01 +0200)
modules/video_output/msw/direct3d.c

index 1be110c..38c2976 100644 (file)
@@ -406,6 +406,7 @@ static int Manage( vout_thread_t *p_vout )
         /* Open the direct3d output and attaches it to the new window */
         p_vout->p_sys->b_desktop = !p_vout->p_sys->b_desktop;
         p_vout->pf_display = FirstDisplay;
+        vlc_mutex_init( &p_vout->p_sys->lock );
 
         CreateEventThread( p_vout );
         Init( p_vout );