From 3efa2ebd19e9887b689ace878e25d92188195ba3 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 14 Aug 2018 11:03:53 -0400 Subject: [PATCH] elm/config: use correct function to return audio mute value when setting this config value an elm function is used to store the setting internally, so it's necessary to use the elm getter function in order to correctly (and accurately) return the same state resolves test failures in elm_config Differential Revision: https://phab.enlightenment.org/D6825 --- src/lib/elementary/elm_config.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/elementary/elm_config.c b/src/lib/elementary/elm_config.c index 8a91f8b..752db05 100644 --- a/src/lib/elementary/elm_config.c +++ b/src/lib/elementary/elm_config.c @@ -5371,7 +5371,9 @@ _efl_config_global_efl_config_config_get(const Eo *obj EINA_UNUSED, void *_pd EI return NULL; } val = eina_value_new(EINA_VALUE_TYPE_UCHAR); - b = edje_audio_channel_mute_get(chan); + b = elm_config_audio_mute_get(chan); + if (b != edje_audio_channel_mute_get(chan)) + ERR("config state for audio channel '%s' does not match active state!", channel); eina_value_set(val, b); return val; } -- 2.7.4