Fix parameter check 50/305750/2
authorKwanghoon Son <k.son@samsung.com>
Wed, 7 Feb 2024 07:02:07 +0000 (07:02 +0000)
committerKwanghoon Son <k.son@samsung.com>
Wed, 7 Feb 2024 07:08:17 +0000 (07:08 +0000)
[Issue type] Fix

TCT need INVALID_DATA instead of INVALID_PARAMETER

Fixed: 7c71a2aa35c62247032f9ea0f7771badcf1d23a9
Change-Id: I5a7155513e51d183ea2f221822262d3e1a65064b
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
mv_barcode/barcode_generator/src/mv_barcode_generate.cpp

index 08e40a0..339767f 100644 (file)
@@ -103,7 +103,8 @@ int mv_barcode_generate_image(mv_engine_config_h engine_cfg, const char *message
        if (image_width <= 0 || image_height <= 0) {
                LOGE("Barcode image size is invalid: %d x %d. Terminate write to the image operation", image_width,
                         image_height);
-               return MEDIA_VISION_ERROR_INVALID_PARAMETER;
+               // TCT need INVALID_DATA instead of INVALID_PARAMETER
+               return MEDIA_VISION_ERROR_INVALID_DATA;
        }
 
        zint_symbol *symbol = ZBarcode_Create();