[vlc-commits] macosx: do not use invalid objects for saving settings

David Fuhrmann git at videolan.org
Thu May 16 22:12:57 CEST 2013


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Thu May 16 21:34:00 2013 +0200| [34f2e6ff6f723a6e71acaa8a9c0e58ae44666cbc] | committer: David Fuhrmann

macosx: do not use invalid objects for saving settings

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

 modules/gui/macosx/MainMenu.m |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/macosx/MainMenu.m b/modules/gui/macosx/MainMenu.m
index 2d1f386..0724cd1 100644
--- a/modules/gui/macosx/MainMenu.m
+++ b/modules/gui/macosx/MainMenu.m
@@ -969,7 +969,7 @@ static VLCMainMenu *_o_sharedInstance = nil;
         [[menu itemWithTag:intValue] setState:NSOnState];
         vlc_object_release(p_freetype);
     }
-    config_PutInt(p_freetype, [representedObject UTF8String], intValue);
+    config_PutInt(p_intf, [representedObject UTF8String], intValue);
 }
 
 - (IBAction)switchSubtitleBackgroundOpacity:(id)sender
@@ -982,7 +982,7 @@ static VLCMainMenu *_o_sharedInstance = nil;
         var_SetInteger(p_freetype, "freetype-background-opacity", intValue);
         vlc_object_release(p_freetype);
     }
-    config_PutInt(p_freetype, "freetype-background-opacity", intValue);
+    config_PutInt(p_intf, "freetype-background-opacity", intValue);
 }
 
 - (IBAction)telxTransparent:(id)sender



More information about the vlc-commits mailing list