]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/wizard.m
macosx: Add a missing PL_LOCK in the wizard.
[vlc] / modules / gui / macosx / wizard.m
index abf197aac62bb3413d667edb40728b0bee1f0830..efc3fef4ff7cd636ad121d97b28de588f052a0bc 100644 (file)
@@ -1294,14 +1294,16 @@ static VLCWizard *_o_sharedInstance = nil;
 
             /* FIXME: playlist_AddInput() can fail */
             playlist_AddInput( p_playlist, p_input, PLAYLIST_STOP,
-                PLAYLIST_END, true, false );
+                PLAYLIST_END, true, pl_Unlocked );
 
             if( x == 0 )
             {
                 /* play the first item and add the others afterwards */
-                playlist_item_t *p_item = playlist_ItemGetByInput( p_playlist, p_input, true );
-                playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, true, NULL,
+                PL_LOCK;
+                playlist_item_t *p_item = playlist_ItemGetByInput( p_playlist, p_input, pl_Locked );
+                playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, pl_Locked, NULL,
                           p_item );
+                PL_UNLOCK;
             }
 
             vlc_gc_decref( p_input );