[vlc-commits] variables: remove useless VLC_VAR_SETSTEP parameter

Rémi Denis-Courmont git at videolan.org
Sun Jun 10 12:10:55 CEST 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jun  9 13:07:17 2018 +0300| [53ee7207fe1183ce81d6dad0469e8766e11f40e4] | committer: Rémi Denis-Courmont

variables: remove useless VLC_VAR_SETSTEP parameter

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

 modules/access/v4l2/controls.c | 2 +-
 test/src/misc/variables.c      | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/access/v4l2/controls.c b/modules/access/v4l2/controls.c
index d8f41b77af..2df8ec32fe 100644
--- a/modules/access/v4l2/controls.c
+++ b/modules/access/v4l2/controls.c
@@ -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;
 }
diff --git a/test/src/misc/variables.c b/test/src/misc/variables.c
index df1a5a345d..134a44930e 100644
--- a/test/src/misc/variables.c
+++ b/test/src/misc/variables.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 );
 



More information about the vlc-commits mailing list