From 9e23981d8a86a3530c03be2d541585ce88e7b914 Mon Sep 17 00:00:00 2001 From: Matt Porter Date: Wed, 19 Apr 2017 23:39:07 -0400 Subject: 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 --- app/paclient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') 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 << -- cgit 1.2.3-korg