[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:29 CEST 2012


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Apr  2 09:36:18 2012 +0200| [1b00b4a7cdfe9fa9bc576f0df396a432e7f840c1] | committer: Felix Paul Kühne

macosx: preserve settings done through the menus across vouts via the playlist object (close #6550)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1b00b4a7cdfe9fa9bc576f0df396a432e7f840c1
---

 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