diff options
Diffstat (limited to 'src/ServerInfoManager.cc')
-rw-r--r-- | src/ServerInfoManager.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ServerInfoManager.cc b/src/ServerInfoManager.cc index e1c978b..436912d 100644 --- a/src/ServerInfoManager.cc +++ b/src/ServerInfoManager.cc @@ -750,7 +750,7 @@ void ServerInfoManager::setSinkVolume(uint32_t index, pa_volume_t volume) { /* FIXME: Handle all channels separately. */ void ServerInfoManager::setSourceVolume(uint32_t index, pa_volume_t volume) { pa_cvolume cvol; - pa_cvolume_set(&cvol, sinks[index]->volume.channels, volume); + pa_cvolume_set(&cvol, sources[index]->volume.channels, volume); pa_operation_unref(pa_context_set_source_volume_by_index(&context, index, &cvol, NULL, NULL)); } |