From: Sejun Park Date: Wed, 7 Mar 2018 05:26:57 +0000 (+0900) Subject: fixed svace issue X-Git-Tag: accepted/tizen/unified/20180313.162846 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3a61d293f2c2250bc85d290d172606bc7a30e2d3;hp=e24ed63bd8d172b6b34a0745e647ef46bde30483;p=platform%2Fadaptation%2Fap_samsung%2Flibomxil-e3250-v4l2.git fixed svace issue Change-Id: Ic5ee617ff7a40927f0361c878f48832ce92df310 --- diff --git a/exynos/libcsc/csc.c b/exynos/libcsc/csc.c index a55a011..39c0e0e 100644 --- a/exynos/libcsc/csc.c +++ b/exynos/libcsc/csc.c @@ -439,6 +439,7 @@ static CSC_ERRORCODE csc_init_hw( ALOGE("%s:: CSC_METHOD_HW can't open HW", __func__); free(csc_handle); csc_handle = NULL; + return CSC_ErrorNotInit; } } @@ -804,7 +805,10 @@ CSC_ERRORCODE csc_convert( if ((csc_handle->csc_method == CSC_METHOD_HW) && (csc_handle->csc_hw_handle == NULL)) - csc_init_hw(handle); + ret = csc_init_hw(handle); + + if (ret != CSC_ErrorNone) + return ret; csc_set_format(csc_handle); csc_set_buffer(csc_handle);