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

Qt4: do not set V4L2 control step if it is 1 / not specified

parent d769331b
...@@ -768,8 +768,8 @@ void ExtV4l2::Refresh( void ) ...@@ -768,8 +768,8 @@ void ExtV4l2::Refresh( void )
var_Change( p_obj, psz_var, VLC_VAR_GETMAX, var_Change( p_obj, psz_var, VLC_VAR_GETMAX,
&val2, NULL ); &val2, NULL );
slider->setMaximum( val2.i_int ); slider->setMaximum( val2.i_int );
var_Change( p_obj, psz_var, VLC_VAR_GETSTEP, if( !var_Change( p_obj, psz_var, VLC_VAR_GETSTEP,
&val2, NULL ); &val2, NULL ) )
slider->setSingleStep( val2.i_int ); slider->setSingleStep( val2.i_int );
slider->setValue( i_val ); slider->setValue( i_val );
......
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