just update debug msg 27/192727/1 accepted/tizen/unified/20181112.060902 submit/tizen/20181112.010749
authorhj kim <backto.kim@samsung.com>
Thu, 8 Nov 2018 23:32:07 +0000 (08:32 +0900)
committerhj kim <backto.kim@samsung.com>
Thu, 8 Nov 2018 23:32:28 +0000 (08:32 +0900)
Change-Id: I7b1c171f85ec20bc871a0b68604b9f410d2d21b4

src/image_util.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index b1befe1..c3cce6c
@@ -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) {