From 52c05acd0d2eda87654e1d394ea42cdc6988a3a5 Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Wed, 23 Jul 2008 19:47:55 +0200 Subject: [PATCH] macosx: Make sure we create non existing variables. --- modules/gui/macosx/vout.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]; } -- 2.39.2