From 106db2e301d8688c0b1353bf7388897b3e91232d Mon Sep 17 00:00:00 2001 From: Jonathan Aillet Date: Tue, 11 Sep 2018 17:35:16 +0200 Subject: Correct an error in Hal-Bt when calling 'mixer' Correct an error in Hal-Bt plugin when calling 'mixer', response was not correctly analyzed. Change-Id: I719076c77501a9c6776559cd8acfcea033a26d1b Signed-off-by: Jonathan Aillet --- plugins/lib/bluetooth/hal-bt-mixer-link.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/lib/bluetooth') diff --git a/plugins/lib/bluetooth/hal-bt-mixer-link.c b/plugins/lib/bluetooth/hal-bt-mixer-link.c index 2c46fb4..9711ea1 100644 --- a/plugins/lib/bluetooth/hal-bt-mixer-link.c +++ b/plugins/lib/bluetooth/hal-bt-mixer-link.c @@ -54,7 +54,7 @@ int HalBtMixerLinkSetBtStreamingSettings(AFB_ApiT apiHandle, char *mixerApiName, mixerApiName); return -3; } - else if(wrap_json_unpack(returnedJ, "{s:{s:s}}", "request", "info", &returnedError)) { + else if(! wrap_json_unpack(returnedJ, "{s:{s:s}}", "request", "info", &returnedError)) { AFB_ApiError(apiHandle, "Error '%s' happened during set bluetooth streaming settings during call to verb '%s' of api '%s'", returnedError ? returnedError : "no_error_string", -- cgit 1.2.3-korg