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
This commit is contained in:
Mike Blumenkrantz 2018-08-14 11:03:53 -04:00 committed by Marcel Hollerbach
parent 3ea6f58ec6
commit 6277c3436c
1 changed files with 3 additions and 1 deletions

View File

@ -5101,7 +5101,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;
}