Fix wrong error type 35/280435/1
authorminje.ahn <minje.ahn@samsung.com>
Tue, 30 Aug 2022 05:14:21 +0000 (14:14 +0900)
committerminje.ahn <minje.ahn@samsung.com>
Tue, 30 Aug 2022 05:14:21 +0000 (14:14 +0900)
Change-Id: I83f9d6e52e1c0425692f091f03553ed87deef546
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
src/media-thumbnail.c

index 2b7e850..fdce8b0 100755 (executable)
@@ -419,7 +419,7 @@ static int __get_image_info(const char *path, unsigned int *width, unsigned int
 
        err = mm_util_extract_image_info(path, &image_type, &image_w, &image_h);
        thumb_retvm_if(err != MS_MEDIA_ERR_NONE, MS_MEDIA_ERR_INTERNAL, "Getting image info is failed err: %d", err);
-       thumb_retvm_if(image_type == IMG_CODEC_UNKNOWN_TYPE, MS_MEDIA_ERR_UNSUPPORTED_CONTENT, "Unsupported image codec");
+       thumb_retvm_if(image_type == IMG_CODEC_UNKNOWN_TYPE, MS_MEDIA_ERR_THUMB_UNSUPPORTED, "Unsupported image codec");
 
        /*
        if ((image_type != IMG_CODEC_JPEG) && (image_w * image_h > THUMB_MAX_ALLOWED_MEM_FOR_THUMB)) {