summaryrefslogtreecommitdiffstats
path: root/plugins/alsa
diff options
context:
space:
mode:
authorThierry Bultel <thierry.bultel@iot.bzh>2018-09-10 15:08:36 +0200
committerThierry Bultel <thierry.bultel@iot.bzh>2018-09-10 15:08:36 +0200
commit13fd8b9e68faf4c666a21ecada74b94668ad9b27 (patch)
treeaeadc8fe44b5c1e2d7da6d42a5d47fe76282f5fd /plugins/alsa
parent9c0aa9f3073a37e961a90a973b8d007685c9e184 (diff)
bluez-alsa: fixed the null device logic
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
Diffstat (limited to 'plugins/alsa')
-rw-r--r--plugins/alsa/alsa-api-mixer.c3
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: