[vlc-commits] Set more reasonable limits for --volume-step

Rémi Denis-Courmont git at videolan.org
Fri Jul 20 16:58:40 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Jul 20 17:25:56 2012 +0300| [a5feda888d2cc4a7adff0d8f2bbcd02f60621184] | committer: Rémi Denis-Courmont

Set more reasonable limits for --volume-step

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

 src/libvlc-module.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/libvlc-module.c b/src/libvlc-module.c
index ad3db0b..c95d0f0 100644
--- a/src/libvlc-module.c
+++ b/src/libvlc-module.c
@@ -1473,9 +1473,9 @@ vlc_module_begin ()
     add_float( "gain", 1., GAIN_TEXT, GAIN_LONGTEXT, true )
         change_float_range( 0., 8. )
     add_obsolete_integer( "volume" ) /* since 2.1.0 */
-    add_integer_with_range( "volume-step", AOUT_VOLUME_STEP, 0,
-                            AOUT_VOLUME_MAX, VOLUME_STEP_TEXT,
-                            VOLUME_STEP_LONGTEXT, true )
+    add_integer( "volume-step", AOUT_VOLUME_STEP, VOLUME_STEP_TEXT,
+                 VOLUME_STEP_LONGTEXT, true )
+        change_integer_range( 1, AOUT_VOLUME_DEFAULT )
     add_bool( "volume-save", true, VOLUME_SAVE_TEXT, VOLUME_SAVE_TEXT, true )
     add_obsolete_integer( "aout-rate" ) /* since 2.0.0 */
 #if HAVE_FPU && !defined( __APPLE__ )



More information about the vlc-commits mailing list