]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/interface_widgets.cpp
Remove completely useless mutex
[vlc] / modules / gui / qt4 / components / interface_widgets.cpp
index 1e0d3494ad412d9dfa14b6381bbfcae0bee21aa2..66e4a9641c5b54ad2a9f897ccf8ed253426829b3 100644 (file)
@@ -60,7 +60,6 @@
 VideoWidget::VideoWidget( intf_thread_t *_p_i ) : QFrame( NULL ), p_intf( _p_i )
 {
     /* Init */
-    vlc_mutex_init( &lock );
     p_vout = NULL;
     hide(); setMinimumSize( 16, 16 );
     videoSize.rwidth() = -1;
@@ -98,7 +97,6 @@ void VideoWidget::paintEvent(QPaintEvent *ev)
 
 VideoWidget::~VideoWidget()
 {
-    vlc_mutex_lock( &lock );
     if( p_vout )
     {
         if( !p_intf->psz_switch_intf )
@@ -112,8 +110,6 @@ VideoWidget::~VideoWidget()
                 vout_Control( p_vout, VOUT_CLOSE );
         }
     }
-    vlc_mutex_unlock( &lock );
-    vlc_mutex_destroy( &lock );
 }
 
 /**