From e134a03534080e4276a50130de9e484dfb914b52 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sat, 28 Jun 2008 20:23:37 +0300 Subject: [PATCH] Remove completely useless mutex --- modules/gui/qt4/components/interface_widgets.cpp | 4 ---- modules/gui/qt4/components/interface_widgets.hpp | 1 - 2 files changed, 5 deletions(-) diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp index 1e0d3494ad..66e4a9641c 100644 --- a/modules/gui/qt4/components/interface_widgets.cpp +++ b/modules/gui/qt4/components/interface_widgets.cpp @@ -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 ); } /** diff --git a/modules/gui/qt4/components/interface_widgets.hpp b/modules/gui/qt4/components/interface_widgets.hpp index c1071d6aa1..62f6d7eb78 100644 --- a/modules/gui/qt4/components/interface_widgets.hpp +++ b/modules/gui/qt4/components/interface_widgets.hpp @@ -87,7 +87,6 @@ private: intf_thread_t *p_intf; vout_thread_t *p_vout; - vlc_mutex_t lock; QSize videoSize; signals: -- 2.39.2