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
This commit is contained in:
Mike Blumenkrantz 2018-08-16 10:16:23 -04:00
parent 1bdda117a1
commit 89c92726c4
1 changed files with 4 additions and 0 deletions

View File

@ -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);