From ba8f5af2374314a1aac064c1d12a76779e0de8bc Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Thu, 31 Jul 2008 20:58:54 +0200 Subject: [PATCH] macosx: Add a missing PL_LOCK in the wizard. --- modules/gui/macosx/wizard.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/gui/macosx/wizard.m b/modules/gui/macosx/wizard.m index 25343046de..efc3fef4ff 100644 --- a/modules/gui/macosx/wizard.m +++ b/modules/gui/macosx/wizard.m @@ -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 ); -- 2.39.2