From: Pierre d'Herbemont Date: Thu, 31 Jul 2008 18:58:54 +0000 (+0200) Subject: macosx: Add a missing PL_LOCK in the wizard. X-Git-Tag: 0.9.0-test3~95 X-Git-Url: https://git.sesse.net/?p=vlc;a=commitdiff_plain;h=ba8f5af2374314a1aac064c1d12a76779e0de8bc macosx: Add a missing PL_LOCK in the wizard. --- 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 );