From: hj kim Date: Thu, 8 Nov 2018 23:32:07 +0000 (+0900) Subject: just update debug msg X-Git-Tag: submit/tizen/20181112.010749^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=91c1f20b28b0c27fbae9d710ad0a198d4b432873;p=platform%2Fcore%2Fapi%2Fimage-util.git just update debug msg Change-Id: I7b1c171f85ec20bc871a0b68604b9f410d2d21b4 --- diff --git a/src/image_util.c b/src/image_util.c old mode 100644 new mode 100755 index b1befe1..c3cce6c --- a/src/image_util.c +++ b/src/image_util.c @@ -115,10 +115,7 @@ static int __create_media_format(media_format_mimetype_e mimetype, unsigned int static void __mm_util_destroy_color_image(mm_image_info_s *image) { - if (image == NULL) { - image_util_error("[ERROR] - image"); - return; - } + image_util_retm_if((image == NULL), "Invalid handle"); IMAGE_UTIL_SAFE_FREE(image->data); IMAGE_UTIL_SAFE_FREE(image); @@ -188,10 +185,9 @@ static int __mm_util_transform(transformation_s *handle) src_width = handle->src->width; src_height = handle->src->height; src_format = handle->src->color; - if (dst_buf[src_index] == NULL) { - image_util_error("[multi func] memory allocation error"); - return IMAGE_UTIL_ERROR_INVALID_OPERATION; - } + + image_util_retvm_if(dst_buf[src_index] == NULL, IMAGE_UTIL_ERROR_INVALID_OPERATION, "[multi func] memory allocation error"); + memcpy(dst_buf[src_index], handle->src->data, handle->src->size); if (handle->set_crop) {