Commit 52c05acd authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx: Make sure we create non existing variables.

parent 9b730a3e
...@@ -860,7 +860,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, ...@@ -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? */ /* Dooh, why do we spend processor time doing this kind of stuff? */
[super manage]; [super manage];
unsigned int i_mouse_hide_timeout = 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 ) if( i_mouse_hide_timeout < 100000 )
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, ...@@ -944,7 +944,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
[o_window setAcceptsMouseMovedEvents: TRUE]; [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]; [o_window setLevel: NSStatusWindowLevel];
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment