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;
CommonClean( p_vout );
+ vlc_mutex_destroy( &p_vout->p_sys->lock );
free( p_vout->p_sys );
}