From 13fd8b9e68faf4c666a21ecada74b94668ad9b27 Mon Sep 17 00:00:00 2001 From: Thierry Bultel Date: Mon, 10 Sep 2018 15:08:36 +0200 Subject: bluez-alsa: fixed the null device logic Signed-off-by: Thierry Bultel --- plugins/alsa/alsa-api-mixer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins') 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: -- cgit 1.2.3-korg