From: Pierre d'Herbemont Date: Wed, 23 Jul 2008 17:47:55 +0000 (+0200) Subject: macosx: Make sure we create non existing variables. X-Git-Tag: 0.9.0-test3~293 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=52c05acd0d2eda87654e1d394ea42cdc6988a3a5;p=vlc macosx: Make sure we create non existing variables. --- diff --git a/modules/gui/macosx/vout.m b/modules/gui/macosx/vout.m index 6c8cfffcc8..dc85fd9718 100644 --- a/modules/gui/macosx/vout.m +++ b/modules/gui/macosx/vout.m @@ -860,7 +860,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, /* Dooh, why do we spend processor time doing this kind of stuff? */ [super manage]; unsigned int i_mouse_hide_timeout = - var_GetInteger(p_vout, "mouse-hide-timeout") * 1000; + var_CreateGetInteger(p_vout, "mouse-hide-timeout") * 1000; if( i_mouse_hide_timeout < 100000 ) i_mouse_hide_timeout = 100000; @@ -944,7 +944,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, [o_window setAcceptsMouseMovedEvents: TRUE]; - if( var_GetBool( p_real_vout, "video-on-top" ) ) + if( var_CreateGetBool( p_real_vout, "video-on-top" ) ) { [o_window setLevel: NSStatusWindowLevel]; }