[vlc-devel] commit: macosx: Make sure we create non existing variables. (Pierre d' Herbemont )

git version control git at videolan.org
Thu Jul 24 00:01:52 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Wed Jul 23 19:47:55 2008 +0200| [52c05acd0d2eda87654e1d394ea42cdc6988a3a5]

macosx: Make sure we create non existing variables.

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

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

diff --git a/modules/gui/macosx/vout.m b/modules/gui/macosx/vout.m
index 6c8cfff..dc85fd9 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];
         }




More information about the vlc-devel mailing list