[vlc-commits] Use correct range type for "volume-step" (fixes #8602)

David Fuhrmann git at videolan.org
Fri May 10 14:18:40 CEST 2013


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Fri May 10 14:14:00 2013 +0200| [335457eeb34f0169d3d526d8a843be1d210b0a57] | committer: David Fuhrmann

Use correct range type for "volume-step" (fixes #8602)

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

 src/libvlc-module.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libvlc-module.c b/src/libvlc-module.c
index 07ea613..595f4ff 100644
--- a/src/libvlc-module.c
+++ b/src/libvlc-module.c
@@ -1462,7 +1462,7 @@ vlc_module_begin ()
     add_obsolete_integer( "volume" ) /* since 2.1.0 */
     add_float( "volume-step", AOUT_VOLUME_STEP, VOLUME_STEP_TEXT,
                  VOLUME_STEP_LONGTEXT, true )
-        change_integer_range( 1, AOUT_VOLUME_DEFAULT )
+        change_float_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 */
     add_obsolete_bool( "hq-resampling" ) /* since 1.1.8 */



More information about the vlc-commits mailing list