Commit b9c3f900 authored by Laurent Aimar's avatar Laurent Aimar

Cosmetics (msw).

parent 8a27f191
......@@ -84,6 +84,7 @@ int CommonInit( vout_thread_t *p_vout )
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();
......@@ -116,6 +117,7 @@ int CommonInit( vout_thread_t *p_vout )
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 );
......
......@@ -880,9 +880,6 @@ static int DirectXConvertKey( int i_key )
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
......@@ -947,8 +944,5 @@ void StopEventThread( vout_thread_t *p_vout )
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 );
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment