From 89c92726c41e85f39a6831b637053984f9c4a2d9 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 16 Aug 2018 10:16:23 -0400 Subject: [PATCH] elm/config: return false when setting audio config if multisense is disabled Summary: these operations cannot be completed if the support is not built in, so return false in order to provide the correct state to the caller Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D6839 --- src/lib/elementary/elm_config.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/elementary/elm_config.c b/src/lib/elementary/elm_config.c index a2dfa2ef41..8f7693bb19 100644 --- a/src/lib/elementary/elm_config.c +++ b/src/lib/elementary/elm_config.c @@ -4968,7 +4968,11 @@ _efl_config_global_efl_config_config_set(Eo *obj EINA_UNUSED, void *_pd EINA_UNU return EINA_FALSE; } elm_config_audio_mute_set(chan, !!v); +#ifdef ENABLE_MULTISENSE return EINA_TRUE; +#else + return EINA_FALSE; +#endif } ERR("Config '%s' does not exist", name);