]> git.sesse.net Git - vlc/commitdiff
Remove completely useless mutex
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Sat, 28 Jun 2008 17:23:37 +0000 (20:23 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Sat, 28 Jun 2008 17:23:37 +0000 (20:23 +0300)
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.hpp

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 );
 }
 
 /**
index c1071d6aa1dd90e9cbc2989b93c75bbeb4ef9616..62f6d7eb7869c7a36d2c87787eb10af6386edee3 100644 (file)
@@ -87,7 +87,6 @@ private:
     intf_thread_t *p_intf;
     vout_thread_t *p_vout;
 
-    vlc_mutex_t lock;
     QSize videoSize;
 
 signals: