[vlc-commits] variables: remove useless VLC_VAR_GETSTEP parameter
Rémi Denis-Courmont
git at videolan.org
Sun Jun 10 12:10:56 CEST 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jun 9 13:07:17 2018 +0300| [dcf2f38330e6fd523d59eb3a07998d9634331d39] | committer: Rémi Denis-Courmont
variables: remove useless VLC_VAR_GETSTEP parameter
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dcf2f38330e6fd523d59eb3a07998d9634331d39
---
modules/gui/qt/components/extended_panels.cpp | 2 +-
test/src/misc/variables.c | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/modules/gui/qt/components/extended_panels.cpp b/modules/gui/qt/components/extended_panels.cpp
index f76282ea5c..cd08128ffe 100644
--- a/modules/gui/qt/components/extended_panels.cpp
+++ b/modules/gui/qt/components/extended_panels.cpp
@@ -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,
diff --git a/test/src/misc/variables.c b/test/src/misc/variables.c
index 134a44930e..7a2704b60e 100644
--- a/test/src/misc/variables.c
+++ b/test/src/misc/variables.c
@@ -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" );
More information about the vlc-commits
mailing list