]> git.sesse.net Git - vlc/commitdiff
macosx: We need the PL_LOCK here (May fix a race we have on startup).
authorPierre d'Herbemont <pdherbemont@videolan.org>
Mon, 15 Sep 2008 21:38:25 +0000 (23:38 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Mon, 15 Sep 2008 21:39:32 +0000 (23:39 +0200)
modules/gui/macosx/playlist.m

index f0888638b270eb6734654bcd09329cc46b26d947..9713b412261a726bbb50dc4f1d1eded52e6857e6 100644 (file)
     NSValue *o_value;
     playlist_t * p_playlist = pl_Yield( VLCIntf );
 
+    PL_LOCK;
     if( item == nil )
     {
         /* root object */
     }
     if( p_item && index < p_item->i_children && index >= 0 )
         p_return = p_item->pp_children[index];
+    PL_UNLOCK;
+
     vlc_object_release( p_playlist );
 
     o_value = [o_outline_dict objectForKey:[NSString stringWithFormat: @"%p", p_return]];