[vlc-devel] commit: gestures: use var_Inherit ( Rémi Denis-Courmont )
git version control
git at videolan.org
Wed Dec 30 20:52:22 CET 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Dec 30 21:27:14 2009 +0200| [1f2a1a8da42508ef6f176904c2185cb159c33a97] | committer: Rémi Denis-Courmont
gestures: use var_Inherit
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1f2a1a8da42508ef6f176904c2185cb159c33a97
---
modules/control/gestures.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/modules/control/gestures.c b/modules/control/gestures.c
index 4055353..fdf7cce 100644
--- a/modules/control/gestures.c
+++ b/modules/control/gestures.c
@@ -130,13 +130,13 @@ int Open ( vlc_object_t *p_this )
p_sys->p_vout = NULL;
p_sys->b_got_gesture = false;
p_sys->b_button_pressed = false;
- p_sys->i_threshold = config_GetInt( p_intf, "gestures-threshold" );
+ p_sys->i_threshold = var_InheritInteger( p_intf, "gestures-threshold" );
// Choose the tight button to use
- char *psz_button = config_GetPsz( p_intf, "gestures-button" );
- if( !strcmp( psz_button, "left" ) )
+ char *psz_button = var_InheritString( p_intf, "gestures-button" );
+ if( psz_button && !strcmp( psz_button, "left" ) )
p_sys->i_button_mask = 1;
- else if( !strcmp( psz_button, "middle" ) )
+ else if( psz_button && !strcmp( psz_button, "middle" ) )
p_sys->i_button_mask = 2;
else // psz_button == "right"
p_sys->i_button_mask = 4;
@@ -211,7 +211,7 @@ static void RunIntf( intf_thread_t *p_intf )
p_input = playlist_CurrentInput( p_playlist );
if( p_input )
{
- i_interval = config_GetInt( p_intf , "short-jump-size" );
+ i_interval = var_InheritInteger( p_intf , "short-jump-size" );
if ( i_interval > 0 )
{
mtime_t i_time = ( (mtime_t)( -i_interval ) * 1000000L);
@@ -226,7 +226,7 @@ static void RunIntf( intf_thread_t *p_intf )
p_input = playlist_CurrentInput( p_playlist );
if( p_input )
{
- i_interval = config_GetInt( p_intf , "short-jump-size" );
+ i_interval = var_InheritInteger( p_intf , "short-jump-size" );
if ( i_interval > 0 )
{
mtime_t i_time = ( (mtime_t)( i_interval ) * 1000000L);
More information about the vlc-devel
mailing list