Commit d1ae6b84 authored by Christophe Mutricy's avatar Christophe Mutricy
Browse files

Don't lock the mutex twice

parent 053d5bb6
...@@ -352,10 +352,8 @@ int VideoWindow::ControlWindow( void *p_window, int i_query, va_list args ) ...@@ -352,10 +352,8 @@ int VideoWindow::ControlWindow( void *p_window, int i_query, va_list args )
unsigned int i_width = va_arg( args, unsigned int ); unsigned int i_width = va_arg( args, unsigned int );
unsigned int i_height = va_arg( args, unsigned int ); unsigned int i_height = va_arg( args, unsigned int );
vlc_mutex_lock( &lock );
if( !i_width && p_vout ) i_width = p_vout->i_window_width; if( !i_width && p_vout ) i_width = p_vout->i_window_width;
if( !i_height && p_vout ) i_height = p_vout->i_window_height; if( !i_height && p_vout ) i_height = p_vout->i_window_height;
vlc_mutex_unlock( &lock );
/* Update dimensions */ /* Update dimensions */
wxSizeEvent event( wxSize( i_width, i_height ), UpdateSize_Event ); wxSizeEvent event( wxSize( i_width, i_height ), UpdateSize_Event );
......
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