[pulseaudio-commits] [SCM] PulseAudio Volume Control branch, master, updated. v0.9.10-25-g26d4265

Colin Guthrie gitmailer-noreply at 0pointer.de
Mon Mar 28 10:52:00 PDT 2011


This is an automated email from the git hooks/post-receive script. It was
generated because of a push to the "PulseAudio Volume Control" repository.

The master branch has been updated
      from  c70b048c98db9cc7869484ff9d6b1ed84b9dea91 (commit)

- Log -----------------------------------------------------------------
26d4265 Ensure the marker for base volume is set on all channels.
-----------------------------------------------------------------------

Summary of changes:
 src/devicewidget.cc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

-----------------------------------------------------------------------

commit 26d42651c5c74b8a714682d678c2a40e6531a0c8
Author: Colin Guthrie <colin at mageia.org>
Date:   Mon Mar 28 18:52:27 2011 +0100

    Ensure the marker for base volume is set on all channels.
    
    Refs #804

diff --git a/src/devicewidget.cc b/src/devicewidget.cc
index bf09f12..dda1763 100644
--- a/src/devicewidget.cc
+++ b/src/devicewidget.cc
@@ -135,8 +135,8 @@ void DeviceWidget::executeVolumeUpdate() {
 
 void DeviceWidget::setBaseVolume(pa_volume_t v) {
 
-    if (channelMap.channels > 0)
-        channelWidgets[channelMap.channels-1]->setBaseVolume(v);
+    for (int i = 0; i < channelMap.channels; i++)
+        channelWidgets[i]->setBaseVolume(v);
 }
 
 void DeviceWidget::prepareMenu() {

-- 
hooks/post-receive
PulseAudio Volume Control



More information about the pulseaudio-commits mailing list