]> git.sesse.net Git - vlc/blobdiff - modules/video_output/msw/directx.c
Reduced a lock visibility to directx only (msw).
[vlc] / modules / video_output / msw / directx.c
index ae27d9efd7ee2b83aa5beef213844bf10b5bf433..96b16b54cc8adac9dc846150c44ff90f2a0cca8d 100644 (file)
@@ -218,6 +218,7 @@ static int OpenVideo( vlc_object_t *p_this )
     p_vout->p_sys = calloc( 1, sizeof( vout_sys_t ) );
     if( p_vout->p_sys == NULL )
         return VLC_ENOMEM;
+    vlc_mutex_init( &p_vout->p_sys->lock );
 
     /* Initialisations */
     p_vout->pf_init = Init;
@@ -431,6 +432,7 @@ static void CloseVideo( vlc_object_t *p_this )
 
     CommonClean( p_vout );
 
+    vlc_mutex_destroy( &p_vout->p_sys->lock );
     free( p_vout->p_sys );
 }