[vlc-devel] commit: Remove completely useless mutex ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat Jun 28 19:21:45 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat Jun 28 20:23:37 2008 +0300| [e134a03534080e4276a50130de9e484dfb914b52]
Remove completely useless mutex
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e134a03534080e4276a50130de9e484dfb914b52
---
modules/gui/qt4/components/interface_widgets.cpp | 4 ----
modules/gui/qt4/components/interface_widgets.hpp | 1 -
2 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp
index 1e0d349..66e4a96 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 c1071d6..62f6d7e 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:
More information about the vlc-devel
mailing list