]> git.sesse.net Git - vlc/commitdiff
macosx: Add a missing PL_LOCK in the wizard.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Thu, 31 Jul 2008 18:58:54 +0000 (20:58 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Thu, 31 Jul 2008 19:05:45 +0000 (21:05 +0200)
modules/gui/macosx/wizard.m

index 25343046deed3e56994c3274e38cdad9bf0cc7dc..efc3fef4ff7cd636ad121d97b28de588f052a0bc 100644 (file)
@@ -1299,9 +1299,11 @@ static VLCWizard *_o_sharedInstance = nil;
             if( x == 0 )
             {
                 /* play the first item and add the others afterwards */
+                PL_LOCK;
                 playlist_item_t *p_item = playlist_ItemGetByInput( p_playlist, p_input, pl_Locked );
-                playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, true, NULL,
+                playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, pl_Locked, NULL,
                           p_item );
+                PL_UNLOCK;
             }
 
             vlc_gc_decref( p_input );