[vlc-commits] test: use VLC_VAR_SETMINMAX

Rémi Denis-Courmont git at videolan.org
Sat Oct 22 11:14:46 CEST 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Oct 14 16:34:13 2016 +0300| [2bd05b42b0c38164124e4cc82f43080fdfecc856] | committer: Rémi Denis-Courmont

test: use VLC_VAR_SETMINMAX

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2bd05b42b0c38164124e4cc82f43080fdfecc856
---

 test/src/misc/variables.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/test/src/misc/variables.c b/test/src/misc/variables.c
index c4525cc..525f5ff 100644
--- a/test/src/misc/variables.c
+++ b/test/src/misc/variables.c
@@ -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 );



More information about the vlc-commits mailing list