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