From f0cbf96720332f388b3effbaba84db462d8294e2 Mon Sep 17 00:00:00 2001 From: Jonathan Aillet Date: Fri, 8 Jun 2018 10:51:01 +0200 Subject: Prevent sending data to mixer of hal is not ready Prevent sending data to mixer of hal is not ready. Change-Id: Ie511a5e23760e87336745dbe15d8d2a5e9481518 Signed-off-by: Jonathan Aillet --- 4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c | 4 ++-- 4a-hal/4a-hal-utilities/4a-hal-utilities-data.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 e3d0744..08ee5c0 100644 --- a/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c +++ b/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c @@ -127,8 +127,8 @@ void HalCtlsActionOnStream(AFB_ReqT request) return; } - if(currentCtlHalData->status != HAL_STATUS_AVAILABLE) { - AFB_ReqFail(request, "hal_unavailable", "Seems that hal is not available"); + if(currentCtlHalData->status != HAL_STATUS_READY) { + AFB_ReqFail(request, "hal_not_ready", "Seems that hal is not ready"); return; } diff --git a/4a-hal/4a-hal-utilities/4a-hal-utilities-data.h b/4a-hal/4a-hal-utilities/4a-hal-utilities-data.h index 71cda63..b472df6 100644 --- a/4a-hal/4a-hal-utilities/4a-hal-utilities-data.h +++ b/4a-hal/4a-hal-utilities/4a-hal-utilities-data.h @@ -33,7 +33,7 @@ enum HalStatus { HAL_STATUS_UNAVAILABLE=0, HAL_STATUS_AVAILABLE=1, - HAL_STATUS_READY=2, + HAL_STATUS_READY=2 }; // Structure to store stream data -- cgit 1.2.3-korg