From 70108117e5f392eff2710d5d6a0cd04e400e4cde Mon Sep 17 00:00:00 2001 From: Jonathan Aillet Date: Sun, 3 Jun 2018 19:09:11 +0200 Subject: Generate an error when mixer initialization fails Generate an error when mixer initialization is correctly transfered to mixer api but an error was raised by it. Change-Id: I617686b0167f9fb536ec56e430d10560e7f7ca31 Signed-off-by: Jonathan Aillet --- 4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to '4a-hal/4a-hal-controllers') diff --git a/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c b/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c index 9b4ba26..b37000d 100644 --- a/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c +++ b/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c @@ -258,12 +258,12 @@ void HalCtlsInitMixer(afb_request *request) } else if(json_object_object_get_ex(returnJ, "response", &toReturnJ)) { err = HalCtlsHandleMixerAttachResponse(request, ¤tCtlHalData->ctlHalSpecificData->ctlHalStreamsData, toReturnJ); - if(err) { - afb_request_success_f(request, - toReturnJ, - "Seems that create call to api %s succeed but this warning was rised by response decoder : %i", - apiToCall, - err); + if(err != (int) MIXER_NO_ERROR) { + afb_request_fail_f(request, + "handler_mixer_response", + "Seems that create call to api %s succeed but this warning was rised by response decoder : %i", + apiToCall, + err); return; } -- cgit 1.2.3-korg