[vlc-devel] commit: macosx: One more direct playlist access removal. (Pierre d' Herbemont )
git version control
git at videolan.org
Sat Jul 12 17:34:12 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sat Jul 12 14:15:30 2008 +0200| [5c3f5dbd9dbe2949d1b1dce648de516d82b95a3d]
macosx: One more direct playlist access removal.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5c3f5dbd9dbe2949d1b1dce648de516d82b95a3d
---
modules/gui/macosx/controls.m | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/gui/macosx/controls.m b/modules/gui/macosx/controls.m
index 8b63c65..c68b575 100644
--- a/modules/gui/macosx/controls.m
+++ b/modules/gui/macosx/controls.m
@@ -887,8 +887,7 @@
vlc_value_t val;
intf_thread_t * p_intf = VLCIntf;
playlist_t * p_playlist = pl_Yield( p_intf );
-
-#define p_input p_playlist->p_input
+ input_thread_t * p_input = playlist_CurrentInput( p_playlist );
if( [[o_mi title] isEqualToString: _NS("Faster")] ||
[[o_mi title] isEqualToString: _NS("Slower")] )
@@ -908,6 +907,7 @@
{
bEnabled = FALSE;
}
+ [o_main setupMenus]; /* Make sure input menu is up to date */
}
else if( [[o_mi title] isEqualToString: _NS("Previous")] ||
[[o_mi title] isEqualToString: _NS("Next")] )
@@ -998,6 +998,7 @@
[o_main setupMenus]; /* Make sure video menu is up to date */
}
+ if( p_input ) vlc_object_release( p_input );
vlc_object_release( p_playlist );
return( bEnabled );
More information about the vlc-devel
mailing list