aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-08-16 10:16:23 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-08-16 10:16:23 -0400
commit89c92726c41e85f39a6831b637053984f9c4a2d9 (patch)
tree339efc2534a714c31ff2eafcee7aaf44b19ae8ab
parentelm_code_line: fix potential crash. (diff)
downloadefl-89c92726c41e85f39a6831b637053984f9c4a2d9.tar.gz
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
-rw-r--r--src/lib/elementary/elm_config.c4
1 files changed, 4 insertions, 0 deletions
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);