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

variables: remove useless VLC_VAR_SETSTEP parameter

parent 8f6a9a7e
......@@ -398,7 +398,7 @@ static vlc_v4l2_ctrl_t *ControlAddInteger (vlc_object_t *obj, int fd,
if (query->step != 1)
{
val.i_int = query->step;
var_Change (obj, c->name, VLC_VAR_SETSTEP, &val, NULL);
var_Change (obj, c->name, VLC_VAR_SETSTEP, &val);
}
return c;
}
......
......@@ -306,7 +306,7 @@ static void test_limits( libvlc_int_t *p_libvlc )
assert( var_GetInteger( p_libvlc, "bla" ) == 12345 );
val.i_int = 42;
var_Change( p_libvlc, "bla", VLC_VAR_SETSTEP, &val, NULL );
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 );
......@@ -360,7 +360,7 @@ static void test_change( libvlc_int_t *p_libvlc )
var_Create( p_libvlc, "bla", VLC_VAR_INTEGER );
var_Change( p_libvlc, "bla", VLC_VAR_SETMINMAX, &min, &max );
var_Change( p_libvlc, "bla", VLC_VAR_SETSTEP, &step, NULL );
var_Change( p_libvlc, "bla", VLC_VAR_SETSTEP, &step );
var_SetInteger( p_libvlc, "bla", 13 );
assert( var_GetInteger( p_libvlc, "bla" ) == 13 );
......@@ -413,7 +413,7 @@ static void test_creation_and_type( libvlc_int_t *p_libvlc )
assert( var_Change( p_libvlc, "bla" , VLC_VAR_GETSTEP, &val, NULL ) != 0 );
val.i_int = 4212;
var_Change( p_libvlc, "bla", VLC_VAR_SETSTEP, &val, NULL );
var_Change( p_libvlc, "bla", VLC_VAR_SETSTEP, &val );
assert( var_Change( p_libvlc, "bla" , VLC_VAR_GETSTEP, &val, NULL ) == 0
&& val.i_int == 4212 );
......
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