From: hj kim Date: Thu, 11 Oct 2018 09:22:34 +0000 (+0900) Subject: Just update debug msg X-Git-Tag: submit/tizen/20181106.000712^2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a61eac68c77964e6a8fbc0e5d18181ec6ff2e926;p=platform%2Fcore%2Fapi%2Fimage-util.git Just update debug msg Change-Id: I402360446e11ea90e265cc6c2e639b4b237562c9 --- diff --git a/src/image_util_encode.c b/src/image_util_encode.c index 0724ee9..dfe2e4b 100755 --- a/src/image_util_encode.c +++ b/src/image_util_encode.c @@ -255,10 +255,7 @@ int image_util_encode_set_input_buffer(image_util_encode_h handle, const unsigne int err = IMAGE_UTIL_ERROR_NONE; encode_s *_handle = (encode_s *) handle; - if (src_buffer == NULL) { - image_util_error("Invalid input buffer"); - return IMAGE_UTIL_ERROR_INVALID_PARAMETER; - } + image_util_retvm_if((src_buffer == NULL), IMAGE_UTIL_ERROR_INVALID_PARAMETER, "Invalid input buffer"); /* initialize buffer and value for source buffer */ if (_handle->image_type == IMAGE_UTIL_GIF) { @@ -456,11 +453,7 @@ static int _image_util_encode_create_thread(encode_s * handle) /*create threads */ handle->thread = g_thread_new("encode_thread", (GThreadFunc) _image_util_encode_thread, (gpointer) handle); - if (!handle->thread) { - image_util_error("ERROR - create thread"); - - return IMAGE_UTIL_ERROR_INVALID_OPERATION; - } + image_util_retvm_if((handle->thread == NULL), IMAGE_UTIL_ERROR_INVALID_OPERATION, "ERROR - create thread"); return IMAGE_UTIL_ERROR_NONE; }