]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/wizard.m
Use pl_Locked and pl_Unlocked
[vlc] / modules / gui / macosx / wizard.m
index 8f7a5e978dc1c04688db959d2046e396fe58d274..25343046deed3e56994c3274e38cdad9bf0cc7dc 100644 (file)
@@ -1292,17 +1292,19 @@ static VLCWizard *_o_sharedInstance = nil;
                 @"ttl=%@", [o_userSelections objectForKey:@"ttl"]]
                 UTF8String] );
 
+            /* FIXME: playlist_AddInput() can fail */
             playlist_AddInput( p_playlist, p_input, PLAYLIST_STOP,
-                PLAYLIST_END, VLC_TRUE, VLC_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, VLC_TRUE );
-                playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, VLC_TRUE, NULL,
+                playlist_item_t *p_item = playlist_ItemGetByInput( p_playlist, p_input, pl_Locked );
+                playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, true, NULL,
                           p_item );
             }
 
+            vlc_gc_decref( p_input );
             x += 1;
         }