p_sys->i_changes = 0;
SetRectEmpty( &p_sys->rect_display );
SetRectEmpty( &p_sys->rect_parent );
+ vlc_mutex_init( &p_sys->lock );
p_sys->b_cursor_hidden = 0;
p_sys->i_lastmoved = mdate();
void CommonClean( vout_thread_t *p_vout )
{
StopEventThread( p_vout );
+ vlc_mutex_destroy( &p_vout->p_sys->lock );
#if !defined(UNDER_CE) && !defined(MODULE_NAME_IS_glwin32)
RestoreScreensaver( p_vout );
int CreateEventThread( vout_thread_t *p_vout )
{
- if( !( p_vout->p_sys->i_changes & SWITCHING_MODE_FLAG ) )
- vlc_mutex_init( &p_vout->p_sys->lock );
-
/* Create the Vout EventThread, this thread is created by us to isolate
* the Win32 PeekMessage function calls. We want to do this because
* Windows can stay blocked inside this call for a long time, and when
vlc_thread_join( p_event );
vlc_object_release( p_event );
}
-
- if( !( p_vout->p_sys->i_changes & SWITCHING_MODE_FLAG ) )
- vlc_mutex_destroy( &p_vout->p_sys->lock );
}