diff options
author | Thierry Bultel <thierry.bultel@iot.bzh> | 2018-09-10 15:08:36 +0200 |
---|---|---|
committer | Thierry Bultel <thierry.bultel@iot.bzh> | 2018-09-10 15:08:36 +0200 |
commit | 13fd8b9e68faf4c666a21ecada74b94668ad9b27 (patch) | |
tree | aeadc8fe44b5c1e2d7da6d42a5d47fe76282f5fd | |
parent | 9c0aa9f3073a37e961a90a973b8d007685c9e184 (diff) |
bluez-alsa: fixed the null device logic
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
-rw-r--r-- | plugins/alsa/alsa-api-mixer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/alsa/alsa-api-mixer.c b/plugins/alsa/alsa-api-mixer.c index 07bcf12..9dedb04 100644 --- a/plugins/alsa/alsa-api-mixer.c +++ b/plugins/alsa/alsa-api-mixer.c @@ -645,7 +645,7 @@ static void MixerBluezAlsaDevVerb(AFB_ReqT request) { json_object *argsJ = afb_req_json(request); int error; - if (!json_object_is_type(argsJ,json_type_null)) { + if (json_object_is_type(argsJ,json_type_null)) { goto parsed; } @@ -675,7 +675,6 @@ parsed: goto OnErrorExit; } - AFB_ReqSuccess(request, responseJ, NULL); OnErrorExit: |