mv_barcode: Fix log level
authorKwang Son <k.son@samsung.com>
Mon, 28 Feb 2022 00:26:59 +0000 (19:26 -0500)
committerInki Dae <inki.dae@samsung.com>
Wed, 20 Jul 2022 05:16:40 +0000 (14:16 +0900)
return error code log should be error

[Version] 0.16.1-0
[Issue type] bug fix

Change-Id: I6c19709c56a6882807f8bfa1d0b3586d86e0010f
Signed-off-by: Kwang Son <k.son@samsung.com>
mv_barcode/barcode_detector/src/Barcode.cpp
mv_barcode/barcode_detector/src/BarcodeUtils.cpp
packaging/capi-media-vision.spec

index cff005c..b6ef76c 100644 (file)
@@ -100,7 +100,7 @@ int Barcode::calculateLocation(mv_quadrangle_s& location) const
 
        /* polygon location should contain at least 4 points */
        if (locationPolygonSize < numberOfVertexes) {
-               LOGW("Can't compute location of the barcode by %i"
+               LOGE("Can't compute location of the barcode by %i"
                                " points (less then %i).", locationPolygonSize,
                                numberOfVertexes);
                return MEDIA_VISION_ERROR_INVALID_OPERATION;
index 3aca258..86000f5 100644 (file)
@@ -35,7 +35,7 @@ int convertSourceMV2Zbar(mv_source_h mvSource, zbar::Image& zbarSource)
 
        err = mv_source_get_colorspace_c(mvSource, &colorspace);
        if (err != MEDIA_VISION_ERROR_NONE) {
-               LOGW("Can't determine mv_source_h colorspace to convert"
+               LOGE("Can't determine mv_source_h colorspace to convert"
                                " to ZBar colorspace. Conversion failed");
                return err;
        }
@@ -81,19 +81,19 @@ int convertSourceMV2Zbar(mv_source_h mvSource, zbar::Image& zbarSource)
 
        err = mv_source_get_buffer_c(mvSource, &buffer, &size);
        if (err != MEDIA_VISION_ERROR_NONE) {
-               LOGW("Can't get mv_source_h buffer to convert to ZBar image. Conversion failed");
+               LOGE("Can't get mv_source_h buffer to convert to ZBar image. Conversion failed");
                return err;
        }
 
        err = mv_source_get_height_c(mvSource, &height);
        if (err != MEDIA_VISION_ERROR_NONE) {
-               LOGW("Can't get mv_source_h height for conversion. Conversion failed");
+               LOGE("Can't get mv_source_h height for conversion. Conversion failed");
                return err;
        }
 
        err = mv_source_get_width_c(mvSource, &width);
        if (err != MEDIA_VISION_ERROR_NONE) {
-               LOGW("Can't get mv_source_h width for conversion. Conversion failed");
+               LOGE("Can't get mv_source_h width for conversion. Conversion failed");
                return err;
        }
 
index c500758..8361e65 100644 (file)
@@ -1,6 +1,6 @@
 Name:        capi-media-vision
 Summary:     Media Vision library for Tizen Native API
-Version:     0.16.0
+Version:     0.16.1
 Release:     0
 Group:       Multimedia/Framework
 License:     Apache-2.0 and BSD-3-Clause