Commit 5c3f5dbd authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx: One more direct playlist access removal.

parent f48ad230
...@@ -887,8 +887,7 @@ ...@@ -887,8 +887,7 @@
vlc_value_t val; vlc_value_t val;
intf_thread_t * p_intf = VLCIntf; intf_thread_t * p_intf = VLCIntf;
playlist_t * p_playlist = pl_Yield( p_intf ); playlist_t * p_playlist = pl_Yield( p_intf );
input_thread_t * p_input = playlist_CurrentInput( p_playlist );
#define p_input p_playlist->p_input
if( [[o_mi title] isEqualToString: _NS("Faster")] || if( [[o_mi title] isEqualToString: _NS("Faster")] ||
[[o_mi title] isEqualToString: _NS("Slower")] ) [[o_mi title] isEqualToString: _NS("Slower")] )
...@@ -908,6 +907,7 @@ ...@@ -908,6 +907,7 @@
{ {
bEnabled = FALSE; bEnabled = FALSE;
} }
[o_main setupMenus]; /* Make sure input menu is up to date */
} }
else if( [[o_mi title] isEqualToString: _NS("Previous")] || else if( [[o_mi title] isEqualToString: _NS("Previous")] ||
[[o_mi title] isEqualToString: _NS("Next")] ) [[o_mi title] isEqualToString: _NS("Next")] )
...@@ -998,6 +998,7 @@ ...@@ -998,6 +998,7 @@
[o_main setupMenus]; /* Make sure video menu is up to date */ [o_main setupMenus]; /* Make sure video menu is up to date */
} }
if( p_input ) vlc_object_release( p_input );
vlc_object_release( p_playlist ); vlc_object_release( p_playlist );
return( bEnabled ); 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