diff options
author | Manuel Bachmann <manuel.bachmann@iot.bzh> | 2015-12-17 10:17:29 +0100 |
---|---|---|
committer | Manuel Bachmann <manuel.bachmann@iot.bzh> | 2015-12-17 10:17:29 +0100 |
commit | 07fb99ec63d034983b768e8b8bd3d2b30ae37f6f (patch) | |
tree | 7cd2900d0b09d9c9c74265f46b789435a6e965a6 /plugins/audio/audio-api.c | |
parent | 915d25a0c2fcff8a8bb189963f490e0894d05733 (diff) |
Fix Audio API runtime
Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
Diffstat (limited to 'plugins/audio/audio-api.c')
-rw-r--r-- | plugins/audio/audio-api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/audio/audio-api.c b/plugins/audio/audio-api.c index 0fcc73d1..fd5f620f 100644 --- a/plugins/audio/audio-api.c +++ b/plugins/audio/audio-api.c @@ -158,7 +158,7 @@ STATIC json_object* mute (AFB_request *request) { /* AFB_SESSION_CHECK */ } /* "?value=" parameter is "0" or "off" */ - if ( atoi(value) == 0 || !strcasecmp(value, "off") ) { + else if ( atoi(value) == 0 || !strcasecmp(value, "off") ) { ctx->mute = 0; _alsa_set_mute (ctx->idx, ctx->mute); |