[vlc-commits] Qt: match the volume % with the OSD

Jean-Baptiste Kempf git at videolan.org
Sat Sep 24 16:09:46 CEST 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Sep 24 16:08:57 2011 +0200| [940068e005b78d7095479b2cb33e757df3ae2365] | committer: Jean-Baptiste Kempf

Qt: match the volume % with the OSD

Close #3745

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

 modules/gui/qt4/components/controller_widget.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/components/controller_widget.cpp b/modules/gui/qt4/components/controller_widget.cpp
index c5e3d22..25d4804 100644
--- a/modules/gui/qt4/components/controller_widget.cpp
+++ b/modules/gui/qt4/components/controller_widget.cpp
@@ -164,7 +164,7 @@ void SoundWidget::libUpdateVolume()
     playlist_t *p_playlist = pl_Get( p_intf );
 
     i_volume = aout_VolumeGet( p_playlist );
-    i_volume = ((i_volume + 1) * VOLUME_MAX ) / (AOUT_VOLUME_DEFAULT * 2);
+    i_volume = (i_volume * VOLUME_MAX ) / (AOUT_VOLUME_DEFAULT * 2);
 
     if ( i_volume - volumeSlider->value() != 0 )
     {



More information about the vlc-commits mailing list