fixed svace issue 51/171751/1 accepted/tizen/unified/20180313.162846 submit/tizen/20180308.104235
authorSejun Park <sejun79.park@samsung.com>
Wed, 7 Mar 2018 05:26:57 +0000 (14:26 +0900)
committerSejun Park <sejun79.park@samsung.com>
Wed, 7 Mar 2018 05:27:09 +0000 (14:27 +0900)
Change-Id: Ic5ee617ff7a40927f0361c878f48832ce92df310

exynos/libcsc/csc.c

index a55a011..39c0e0e 100644 (file)
@@ -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);