]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/qt4.cpp
LUA: remove unused catalog and DTD support
[vlc] / modules / gui / qt4 / qt4.cpp
index 0e9ab8ea7cbd630e4f34d42604a9a1068f293517..1a2b51c35550efc5e3252380884d32d41d17c613 100644 (file)
@@ -338,7 +338,6 @@ static int Open( vlc_object_t *p_this, bool isDialogProvider )
     intf_sys_t *p_sys = p_intf->p_sys = new intf_sys_t;
     p_intf->p_sys->b_isDialogProvider = isDialogProvider;
     p_sys->p_mi = NULL;
-    p_sys->p_playlist = pl_Get( p_intf );
 
     /* */
 #ifdef Q_WS_X11
@@ -408,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 )
@@ -496,7 +495,7 @@ static void *Thread( void *obj )
     if( !p_intf->p_sys->b_isDialogProvider )
     {
         RegisterIntf( (vlc_object_t *)p_intf );
-        playlist_Play( p_intf->p_sys->p_playlist );
+        playlist_Play( THEPL );
     }
 #endif