]> git.sesse.net Git - vlc/commitdiff
macosx: Make sure we create non existing variables.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 23 Jul 2008 17:47:55 +0000 (19:47 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 23 Jul 2008 22:04:19 +0000 (00:04 +0200)
modules/gui/macosx/vout.m

index 6c8cfffcc85140ba64eaff71255dddc49108b774..dc85fd97181a853abed5e36c2f4539c150cef877 100644 (file)
@@ -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];
         }