summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2011-07-22 10:01:48 +0100
committerColin Guthrie <colin@mageia.org>2011-07-22 10:01:48 +0100
commitca9c74b0429311eba2b488cbb7aae6d6e8500093 (patch)
tree38579cfd126f4b5fcc76dfaf42d30edbd70cf36b
parenta03fa60f411af06b4d8f83407d4805198cfd808c (diff)
source-output: Don't set the channel map for the SO if we do not support SO volumes.
The setting of the channel map triggers the display of the actual volume sliders so it is essential that we do not set it when we don't want to.
-rw-r--r--src/mainwindow.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mainwindow.cc b/src/mainwindow.cc
index 1ae0fb0..7e49e36 100644
--- a/src/mainwindow.cc
+++ b/src/mainwindow.cc
@@ -606,7 +606,9 @@ void MainWindow::updateSourceOutput(const pa_source_output_info &info) {
w = sourceOutputWidgets[info.index];
else {
sourceOutputWidgets[info.index] = w = SourceOutputWidget::create(this);
+#if HAVE_SOURCE_OUTPUT_VOLUMES
w->setChannelMap(info.channel_map, true);
+#endif
recsVBox->pack_start(*w, false, false, 0);
w->index = info.index;
w->clientIndex = info.client;