From: Matt Porter Date: Thu, 20 Apr 2017 03:39:07 +0000 (-0400) Subject: Fix source volume setting in PaClient::setVolume X-Git-Tag: 3.99.1~2 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=9e23981d8a86a3530c03be2d541585ce88e7b914;p=apps%2Fmixer.git 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 --- 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 <<