[vlc-commits] commit: Use vlc_mutex_locker ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Mon Aug 2 21:25:50 CEST 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Aug  2 22:24:15 2010 +0300| [9b62ffa0c7ae92bdfe3e05ba46ac693469b260b5] | committer: Rémi Denis-Courmont 

Use vlc_mutex_locker

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9b62ffa0c7ae92bdfe3e05ba46ac693469b260b5
---

 modules/gui/qt4/qt4.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/qt4.cpp b/modules/gui/qt4/qt4.cpp
index de5d796..1a2b51c 100644
--- a/modules/gui/qt4/qt4.cpp
+++ b/modules/gui/qt4/qt4.cpp
@@ -407,9 +407,9 @@ static void Close( vlc_object_t *p_this )
     x11_display = NULL;
 #endif
     delete p_sys;
-    vlc_mutex_lock (&one.lock);
+
+    vlc_mutex_locker locker (&one.lock);
     one.busy = false;
-    vlc_mutex_unlock (&one.lock);
 }
 
 static void *Thread( void *obj )



More information about the vlc-commits mailing list