Commit e134a035 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove completely useless mutex

parent c68f07f2
...@@ -60,7 +60,6 @@ ...@@ -60,7 +60,6 @@
VideoWidget::VideoWidget( intf_thread_t *_p_i ) : QFrame( NULL ), p_intf( _p_i ) VideoWidget::VideoWidget( intf_thread_t *_p_i ) : QFrame( NULL ), p_intf( _p_i )
{ {
/* Init */ /* Init */
vlc_mutex_init( &lock );
p_vout = NULL; p_vout = NULL;
hide(); setMinimumSize( 16, 16 ); hide(); setMinimumSize( 16, 16 );
videoSize.rwidth() = -1; videoSize.rwidth() = -1;
...@@ -98,7 +97,6 @@ void VideoWidget::paintEvent(QPaintEvent *ev) ...@@ -98,7 +97,6 @@ void VideoWidget::paintEvent(QPaintEvent *ev)
VideoWidget::~VideoWidget() VideoWidget::~VideoWidget()
{ {
vlc_mutex_lock( &lock );
if( p_vout ) if( p_vout )
{ {
if( !p_intf->psz_switch_intf ) if( !p_intf->psz_switch_intf )
...@@ -112,8 +110,6 @@ VideoWidget::~VideoWidget() ...@@ -112,8 +110,6 @@ VideoWidget::~VideoWidget()
vout_Control( p_vout, VOUT_CLOSE ); vout_Control( p_vout, VOUT_CLOSE );
} }
} }
vlc_mutex_unlock( &lock );
vlc_mutex_destroy( &lock );
} }
/** /**
......
...@@ -87,7 +87,6 @@ private: ...@@ -87,7 +87,6 @@ private:
intf_thread_t *p_intf; intf_thread_t *p_intf;
vout_thread_t *p_vout; vout_thread_t *p_vout;
vlc_mutex_t lock;
QSize videoSize; QSize videoSize;
signals: signals:
......
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