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

test: use VLC_VAR_SETMINMAX

parent f08b4c6d
......@@ -289,10 +289,9 @@ static void test_limits( libvlc_int_t *p_libvlc )
var_Change( p_libvlc, "bla", VLC_VAR_GETMAX, &val, NULL );
assert( val.i_int == INT64_MAX );
val.i_int = -1234;
var_Change( p_libvlc, "bla", VLC_VAR_SETMIN, &val, NULL );
val.i_int = 12345;
var_Change( p_libvlc, "bla", VLC_VAR_SETMAX, &val, NULL );
var_Change( p_libvlc, "bla", VLC_VAR_SETMINMAX,
&(vlc_value_t){ .i_int = -1234 },
&(vlc_value_t){ .i_int = 12345 } );
var_Change( p_libvlc, "bla", VLC_VAR_GETMIN, &val, NULL );
assert( val.i_int == -1234 );
......
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