Commit 75975b30 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx: Don't take the playlist lock blindly, where there is no use for it.

parent 44e4691e
......@@ -888,8 +888,6 @@
intf_thread_t * p_intf = VLCIntf;
playlist_t * p_playlist = pl_Yield( p_intf );
vlc_object_lock( p_playlist );
#define p_input p_playlist->p_input
if( [[o_mi title] isEqualToString: _NS("Faster")] ||
......@@ -916,7 +914,9 @@
[[o_mi title] isEqualToString: _NS("Next")] )
{
/** \todo fix i_size use */
PL_LOCK;
bEnabled = p_playlist->items.i_size > 1;
PL_UNLOCK;
}
else if( [[o_mi title] isEqualToString: _NS("Random")] )
{
......@@ -999,7 +999,6 @@
[o_main setupMenus]; /* Make sure video menu is up to date */
}
vlc_object_unlock( p_playlist );
vlc_object_release( p_playlist );
return( bEnabled );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment