[vlc-commits] macosx: preserve settings done through the menus across vouts via the playlist object (close #6550)
Felix Paul Kühne
git at videolan.org
Mon Apr 2 09:36:45 CEST 2012
vlc/vlc-2.0 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Apr 2 09:36:18 2012 +0200| [e777665112af2dad7b73c08abe77b7049185d95a] | committer: Felix Paul Kühne
macosx: preserve settings done through the menus across vouts via the playlist object (close #6550)
(cherry picked from commit 1b00b4a7cdfe9fa9bc576f0df396a432e7f840c1)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=e777665112af2dad7b73c08abe77b7049185d95a
---
modules/gui/macosx/MainMenu.m | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules/gui/macosx/MainMenu.m b/modules/gui/macosx/MainMenu.m
index c24d16c..a43977c 100644
--- a/modules/gui/macosx/MainMenu.m
+++ b/modules/gui/macosx/MainMenu.m
@@ -1125,6 +1125,10 @@ static VLCMainMenu *_o_sharedInstance = nil;
assert([data isKindOfClass:[VLCAutoGeneratedMenuContent class]]);
VLCAutoGeneratedMenuContent *menuContent = (VLCAutoGeneratedMenuContent *)data;
+ /* Preserve settings across vouts via the playlist object: */
+ if( !strcmp( [menuContent name], "fullscreen" ) || !strcmp( [menuContent name], "video-on-top" ) )
+ var_Set( pl_Get( VLCIntf ), [menuContent name] , [menuContent value] );
+
p_object = [menuContent vlcObject];
if( p_object != NULL )
More information about the vlc-commits
mailing list