diff options
author | Matt Porter <mporter@konsulko.com> | 2017-04-19 23:39:07 -0400 |
---|---|---|
committer | Matt Porter <mporter@konsulko.com> | 2017-04-20 22:00:10 -0400 |
commit | 9e23981d8a86a3530c03be2d541585ce88e7b914 (patch) | |
tree | 6c1fb4b8218aa965ec28dac5e7222c14e70026d9 /app/paclient.cpp | |
parent | b8423505e6e7360b509cdfd22f8d86f45169443d (diff) |
Fix source volume setting in PaClient::setVolume
Fix error resulting in sources not being found due to searching
the sink cache hash.
AGL-Bug: SPEC-548
Change-Id: Icd5a75af7a5fc2e0e125d96910af034e4d0873a3
Signed-off-by: Matt Porter <mporter@konsulko.com>
Diffstat (limited to 'app/paclient.cpp')
-rw-r--r-- | app/paclient.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/paclient.cpp b/app/paclient.cpp index 9360685..58d8fad 100644 --- a/app/paclient.cpp +++ b/app/paclient.cpp @@ -68,7 +68,7 @@ void PaClient::setVolume(uint32_t type, uint32_t index, uint32_t channel, uint32 } pa_operation_unref(o); } else if (type == C_SOURCE) { - cvolume = m_sink_states.value(index); + cvolume = m_source_states.value(index); cvolume->values[channel] = volume; if (!(o = pa_context_set_source_volume_by_index(c, index, cvolume, set_source_volume_cb, NULL))) { qWarning() << "PaClient: set source #" << index << |