Commit dcf2f383 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

variables: remove useless VLC_VAR_GETSTEP parameter

parent 53ee7207
......@@ -726,7 +726,7 @@ void ExtV4l2::Refresh( void )
val2.i_int = INT_MAX; /* FIXME */
slider->setMaximum( val2.i_int );
if( !var_Change( p_obj, psz_var, VLC_VAR_GETSTEP,
&val2, NULL ) )
&val2 ) )
slider->setSingleStep( val2.i_int );
slider->setValue( i_val );
CONNECT( slider, valueChanged( int ), this,
......
......@@ -309,7 +309,7 @@ static void test_limits( libvlc_int_t *p_libvlc )
var_Change( p_libvlc, "bla", VLC_VAR_SETSTEP, &val );
var_SetInteger( p_libvlc, "bla", 20 );
val.i_int = 0;
var_Change( p_libvlc, "bla", VLC_VAR_GETSTEP, &val, NULL );
var_Change( p_libvlc, "bla", VLC_VAR_GETSTEP, &val );
assert( val.i_int == 42 );
var_SetInteger( p_libvlc, "bla", 20 );
......@@ -380,7 +380,7 @@ static void test_change( libvlc_int_t *p_libvlc )
assert( val.i_int == min.i_int );
var_Change( p_libvlc, "bla", VLC_VAR_GETMAX, &val );
assert( val.i_int == max.i_int );
var_Change( p_libvlc, "bla", VLC_VAR_GETSTEP, &val, NULL );
var_Change( p_libvlc, "bla", VLC_VAR_GETSTEP, &val );
assert( val.i_int == step.i_int );
var_Destroy( p_libvlc, "bla" );
......@@ -411,10 +411,10 @@ static void test_creation_and_type( libvlc_int_t *p_libvlc )
assert( var_Change( p_libvlc, "bla", VLC_VAR_GETMAX, &val ) == 0
&& val.i_int == 4212 );
assert( var_Change( p_libvlc, "bla" , VLC_VAR_GETSTEP, &val, NULL ) != 0 );
assert( var_Change( p_libvlc, "bla" , VLC_VAR_GETSTEP, &val ) != 0 );
val.i_int = 4212;
var_Change( p_libvlc, "bla", VLC_VAR_SETSTEP, &val );
assert( var_Change( p_libvlc, "bla" , VLC_VAR_GETSTEP, &val, NULL ) == 0
assert( var_Change( p_libvlc, "bla" , VLC_VAR_GETSTEP, &val ) == 0
&& val.i_int == 4212 );
var_Destroy( p_libvlc, "bla" );
......
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