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.
This commit is contained in:
Colin Guthrie 2011-07-22 10:01:48 +01:00
parent a03fa60f41
commit ca9c74b042
1 changed files with 2 additions and 0 deletions

View File

@ -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;