From 4630078ee9fe10f7c52ccd0cf34d83ed25e20680 Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Wed, 16 Jul 2008 23:26:53 +0200 Subject: [PATCH] macosx: Properly inherit variables if they don't exist. --- modules/gui/macosx/vout.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/gui/macosx/vout.m b/modules/gui/macosx/vout.m index 84c7dde43e..394a590adb 100644 --- a/modules/gui/macosx/vout.m +++ b/modules/gui/macosx/vout.m @@ -1058,7 +1058,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, [self makeFirstResponder: o_view]; [self setCanBecomeKeyWindow: YES]; - if( var_GetBool( p_vout, "macosx-background" ) ) + if( var_CreateGetBool( p_vout, "macosx-background" ) ) { int i_device = var_GetInteger( p_vout->p_libvlc, "video-device" ); @@ -1075,12 +1075,12 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, [self setLevel: CGWindowLevelForKey(kCGDesktopWindowLevelKey)]; [self setMovableByWindowBackground: NO]; } - if( var_GetBool( p_vout, "video-on-top" ) ) + if( var_CreateGetBool( p_vout, "video-on-top" ) ) { [self setLevel: NSStatusWindowLevel]; } - [self setAlphaValue: var_GetFloat( p_vout, "macosx-opaqueness" )]; + [self setAlphaValue: var_CreateGetFloat( p_vout, "macosx-opaqueness" )]; /* Add the view. It's automatically resized to fit the window */ [self setContentView: o_view]; @@ -1099,7 +1099,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, BOOL b_black = NO; i_device = var_GetInteger( p_vout->p_libvlc, "video-device" ); - b_black = var_GetBool( p_vout, "macosx-black" ); + b_black = var_CreateGetBool( p_vout, "macosx-black" ); /* Find out on which screen to open the window */ screen = [NSScreen screenWithDisplayID: (CGDirectDisplayID)i_device]; -- 2.39.2