[vlc-commits] DBus: do not assume AOUT_VOLUME_DEFAULT = AOUT_VOLUME_MAX / 4

Rémi Denis-Courmont git at videolan.org
Tue Jul 26 17:41:54 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jul 26 18:34:53 2011 +0300| [e80f2349e401af1117a44613c1967db44332d01e] | committer: Rémi Denis-Courmont

DBus: do not assume AOUT_VOLUME_DEFAULT = AOUT_VOLUME_MAX / 4

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

 modules/control/dbus/dbus_player.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/control/dbus/dbus_player.c b/modules/control/dbus/dbus_player.c
index b59602c..362fd49 100644
--- a/modules/control/dbus/dbus_player.c
+++ b/modules/control/dbus/dbus_player.c
@@ -170,7 +170,7 @@ MarshalVolume( intf_thread_t *p_intf, DBusMessageIter *container )
     audio_volume_t i_vol = aout_VolumeGet( p_intf->p_sys->p_playlist );
 
     /* A volume of 1.0 represents a sensible maximum, ie: 0dB */
-    double d_vol = (double) i_vol / ( AOUT_VOLUME_MAX >> 2 );
+    double d_vol = (double) i_vol / AOUT_VOLUME_DEFAULT;
 
     dbus_message_iter_append_basic( container, DBUS_TYPE_DOUBLE, &d_vol );
 }



More information about the vlc-commits mailing list