]> git.sesse.net Git - vlc/commitdiff
Qt4: remove pointless locking
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 12 Sep 2009 11:27:11 +0000 (14:27 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 12 Sep 2009 11:27:11 +0000 (14:27 +0300)
The main interface video window calls are re-entrant nowadays.

modules/gui/qt4/qt4.cpp

index 1f30b3a7a0c1dec9bb669710967cdd2c72f363c4..85446aaa2bb5ecf5c060b7bbca7d6578c5b82e79 100644 (file)
@@ -478,7 +478,7 @@ static void *Thread( void *obj )
 
     if (p_mi != NULL)
     {
-        QMutexLocker locker (&iface.lock);
+        /* FIXME: are we sure that video window is already destroyed? */
 
         msg_Dbg (p_intf, "destroying the main Qt4 interface");
         p_intf->p_sys->p_mi = NULL;
@@ -543,8 +543,6 @@ static int WindowOpen( vlc_object_t *p_obj )
     if( p_wnd->cfg->is_standalone )
         return VLC_EGENERIC;
 
-    QMutexLocker( &iface.lock );
-
     vlc_value_t val;
 
     if( var_Get( p_obj->p_libvlc, "qt4-iface", &val ) )
@@ -585,8 +583,6 @@ static int WindowOpen( vlc_object_t *p_obj )
 static int WindowControl( vout_window_t *p_wnd, int i_query, va_list args )
 {
     MainInterface *p_mi = (MainInterface *)p_wnd->sys;
-    QMutexLocker locker(&iface.lock);
-
     return p_mi->controlVideo( i_query, args );
 }
 
@@ -595,8 +591,6 @@ static void WindowClose( vlc_object_t *p_obj )
     vout_window_t *p_wnd = (vout_window_t*)p_obj;
     MainInterface *p_mi = (MainInterface *)p_wnd->sys;
 
-    QMutexLocker locker( &iface.lock );
-
     msg_Dbg( p_obj, "releasing video..." );
     p_mi->releaseVideo();
 }