Change-Id: Ic5ee617ff7a40927f0361c878f48832ce92df310
ALOGE("%s:: CSC_METHOD_HW can't open HW", __func__);
free(csc_handle);
csc_handle = NULL;
ALOGE("%s:: CSC_METHOD_HW can't open HW", __func__);
free(csc_handle);
csc_handle = NULL;
+ return CSC_ErrorNotInit;
if ((csc_handle->csc_method == CSC_METHOD_HW) &&
(csc_handle->csc_hw_handle == NULL))
if ((csc_handle->csc_method == CSC_METHOD_HW) &&
(csc_handle->csc_hw_handle == NULL))
+ ret = csc_init_hw(handle);
+
+ if (ret != CSC_ErrorNone)
+ return ret;
csc_set_format(csc_handle);
csc_set_buffer(csc_handle);
csc_set_format(csc_handle);
csc_set_buffer(csc_handle);