]> git.sesse.net Git - vlc/commitdiff
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 1be110cb74d5e2c1b15b3e9f18f05b2c55dddbf7..38c2976a6b79d4863ae9ed9ff5cb6c3498e202e2 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 );