[vlc-commits] Qt4: do not set V4L2 control step if it is 1 / not specified
Rémi Denis-Courmont
git at videolan.org
Sat Oct 1 21:33:50 CEST 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Oct 1 22:32:49 2011 +0300| [c652287c64af240a80efe6865370a6911f30c02d] | committer: Rémi Denis-Courmont
Qt4: do not set V4L2 control step if it is 1 / not specified
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c652287c64af240a80efe6865370a6911f30c02d
---
modules/gui/qt4/components/extended_panels.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/gui/qt4/components/extended_panels.cpp b/modules/gui/qt4/components/extended_panels.cpp
index e4f6942..fbe523a 100644
--- a/modules/gui/qt4/components/extended_panels.cpp
+++ b/modules/gui/qt4/components/extended_panels.cpp
@@ -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,
More information about the vlc-commits
mailing list