macosx: preserve settings done through the menus across vouts via the playlist object...
authorFelix Paul Kühne <fkuehne@videolan.org>
Mon, 2 Apr 2012 07:36:18 +0000 (09:36 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Mon, 2 Apr 2012 07:36:18 +0000 (09:36 +0200)
modules/gui/macosx/MainMenu.m

index c24d16c..a43977c 100644 (file)
@@ -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 )