From: Jeongmo Yang Date: Fri, 25 Mar 2016 12:15:37 +0000 (+0900) Subject: [Release version 0.3.10] Fix crash issue in feature not supported case X-Git-Tag: accepted/tizen/ivi/20160325.134545^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bddaac8a98f92f57464b3722c067c40884d0f235;p=platform%2Fcore%2Fapi%2Fmediavision.git [Release version 0.3.10] Fix crash issue in feature not supported case Change-Id: I9242ee30015b03247f89a9063f58a50361d8ca66 Signed-off-by: Jeongmo Yang --- diff --git a/packaging/capi-media-vision.spec b/packaging/capi-media-vision.spec index 0695c26..ba1a363 100644 --- a/packaging/capi-media-vision.spec +++ b/packaging/capi-media-vision.spec @@ -1,6 +1,6 @@ Name: capi-media-vision Summary: Media Vision library for Tizen Native API -Version: 0.3.9 +Version: 0.3.10 Release: 0 Group: Multimedia/Framework License: Apache-2.0 and BSD-2.0 diff --git a/src/mv_private.c b/src/mv_private.c index 4161510..b46d5e7 100644 --- a/src/mv_private.c +++ b/src/mv_private.c @@ -28,28 +28,28 @@ bool __mv_check_system_info_feature_supported() const int nRetVal1 = system_info_get_platform_bool("http://tizen.org/feature/vision.barcode_detection", &isBarcodeDetectionSupported); if (nRetVal1 != SYSTEM_INFO_ERROR_NONE) { - LOGE("[%s] SYSTEM_INFO_ERROR: __FUNCTION__"); + LOGE("SYSTEM_INFO_ERROR: vision.barcode_detection"); return false; } const int nRetVal2 = system_info_get_platform_bool("http://tizen.org/feature/vision.barcode_generation", &isBarcodeGenerationSupported); if (nRetVal2 != SYSTEM_INFO_ERROR_NONE) { - LOGE("[%s] SYSTEM_INFO_ERROR: __FUNCTION__"); + LOGE("SYSTEM_INFO_ERROR: vision.barcode_generation"); return false; } const int nRetVal3 = system_info_get_platform_bool("http://tizen.org/feature/vision.face_recognition", &isFaceRecognitionSupported); if (nRetVal3 != SYSTEM_INFO_ERROR_NONE) { - LOGE("[%s] SYSTEM_INFO_ERROR: __FUNCTION__"); + LOGE("SYSTEM_INFO_ERROR: vision.face_recognition"); return false; } const int nRetVal4 = system_info_get_platform_bool("http://tizen.org/feature/vision.image_recognition", &isImageRecognitionSupported); if (nRetVal4 != SYSTEM_INFO_ERROR_NONE) { - LOGE("[%s] SYSTEM_INFO_ERROR: __FUNCTION__"); + LOGE("SYSTEM_INFO_ERROR: vision.image_recognition"); return false; } @@ -75,7 +75,7 @@ bool __mv_barcode_detect_check_system_info_feature_supported() const int nRetVal = system_info_get_platform_bool("http://tizen.org/feature/vision.barcode_detection", &isBarcodeDetectionSupported); if (nRetVal != SYSTEM_INFO_ERROR_NONE) { - LOGE("[%s] SYSTEM_INFO_ERROR: __FUNCTION__"); + LOGE("SYSTEM_INFO_ERROR: vision.barcode_detectio"); return false; } @@ -95,7 +95,7 @@ bool __mv_barcode_generate_check_system_info_feature_supported() const int nRetVal = system_info_get_platform_bool("http://tizen.org/feature/vision.barcode_generation", &isBarcodeGenerationSupported); if (nRetVal != SYSTEM_INFO_ERROR_NONE) { - LOGE("[%s] SYSTEM_INFO_ERROR: __FUNCTION__"); + LOGE("SYSTEM_INFO_ERROR: vision.barcode_generation"); return false; } @@ -115,7 +115,7 @@ bool __mv_face_check_system_info_feature_supported() const int nRetVal = system_info_get_platform_bool("http://tizen.org/feature/vision.face_recognition", &isFaceRecognitionSupported); if (nRetVal != SYSTEM_INFO_ERROR_NONE) { - LOGE("[%s] SYSTEM_INFO_ERROR: __FUNCTION__"); + LOGE("SYSTEM_INFO_ERROR: vision.face_recognition"); return false; } @@ -135,7 +135,7 @@ bool __mv_image_check_system_info_feature_supported() const int nRetVal = system_info_get_platform_bool("http://tizen.org/feature/vision.image_recognition", &isImageRecognitionSupported); if (nRetVal != SYSTEM_INFO_ERROR_NONE) { - LOGE("[%s] SYSTEM_INFO_ERROR: __FUNCTION__"); + LOGE("SYSTEM_INFO_ERROR: vision.image_recognition"); return false; }