diff options
author | Sejun Park <sejun79.park@samsung.com> | 2018-02-14 11:50:50 +0900 |
---|---|---|
committer | Sejun Park <sejun79.park@samsung.com> | 2018-02-14 11:50:50 +0900 |
commit | 682763663709dac5efcff1c9772647654172e5a5 (patch) | |
tree | 85efa0444eb459e873dc9fdf0b255cbd00bc53af | |
parent | dbdcb66ed63a6f770944c09afa455bb82fc1393e (diff) | |
download | libexynos-common-tizen_7.0_hotfix.tar.gz libexynos-common-tizen_7.0_hotfix.tar.bz2 libexynos-common-tizen_7.0_hotfix.zip |
fixed svace issuestizen_7.0_m2_releasetizen_6.5.m2_releasetizen_6.0.m2_releasetizen_5.5.m2_releasesubmit/tizen_6.5/20211028.161401submit/tizen_6.0_hotfix/20201103.114801submit/tizen_6.0_hotfix/20201102.192501submit/tizen_6.0/20201029.205101submit/tizen_5.5_wearable_hotfix/20201026.184301submit/tizen_5.5_mobile_hotfix/20201026.185101submit/tizen_5.5/20191031.000009submit/tizen_5.0/20181101.000001submit/tizen/20180219.073606accepted/tizen/unified/20180220.064112accepted/tizen/7.0/unified/hotfix/20221116.104328accepted/tizen/7.0/unified/20221110.061821accepted/tizen/6.5/unified/20211028.093157accepted/tizen/6.0/unified/hotfix/20201103.050856accepted/tizen/6.0/unified/20201030.123021accepted/tizen/5.5/unified/wearable/hotfix/20201027.122621accepted/tizen/5.5/unified/mobile/hotfix/20201027.081118accepted/tizen/5.5/unified/20191031.004556accepted/tizen/5.0/unified/20181102.012003tizen_7.0_hotfixtizen_6.5tizen_6.0_hotfixtizen_6.0tizen_5.5_wearable_hotfixtizen_5.5_tvtizen_5.5_mobile_hotfixtizen_5.5tizen_5.0accepted/tizen_7.0_unified_hotfixaccepted/tizen_6.5_unifiedaccepted/tizen_6.0_unified_hotfixaccepted/tizen_6.0_unifiedaccepted/tizen_5.5_unified_wearable_hotfixaccepted/tizen_5.5_unified_mobile_hotfixaccepted/tizen_5.5_unifiedaccepted/tizen_5.0_unified
Change-Id: Ia75080d7a040bc646693224978ce57bdf586bd8f
-rwxr-xr-x | libcsc/csc.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/libcsc/csc.c b/libcsc/csc.c index d90968e..39e4a95 100755 --- a/libcsc/csc.c +++ b/libcsc/csc.c @@ -745,6 +745,7 @@ static CSC_ERRORCODE csc_init_hw( ALOGE("%s:: CSC_METHOD_HW can't open HW", __func__); free(csc_handle); csc_handle = NULL; + ret = CSC_ErrorNotInit; } } if (csc_handle) @@ -1260,8 +1261,12 @@ CSC_ERRORCODE csc_convert( return CSC_ErrorNotInit; if ((csc_handle->csc_method == CSC_METHOD_HW) && - (csc_handle->csc_hw_handle == NULL)) - csc_init_hw(handle); + (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); @@ -1284,8 +1289,12 @@ CSC_ERRORCODE csc_convert_with_rotation( return CSC_ErrorNotInit; if ((csc_handle->csc_method == CSC_METHOD_HW) && - (csc_handle->csc_hw_handle == NULL)) - csc_init_hw(handle); + (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); |