From: hj kim Date: Thu, 12 Mar 2020 00:59:28 +0000 (+0900) Subject: Use define instead of hard coding X-Git-Tag: submit/tizen/20200316.031954~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=463c6a5e76bdd72f396976316ee0fbeccd3a7b87;p=platform%2Fcore%2Fapi%2Fthumbnail-util.git Use define instead of hard coding Change-Id: Ifc004cdb2285092481e69d076ca5505924adffc8 --- diff --git a/src/thumbnail_util.c b/src/thumbnail_util.c index 4273b22..c234c95 100644 --- a/src/thumbnail_util.c +++ b/src/thumbnail_util.c @@ -108,8 +108,8 @@ int thumbnail_util_create(thumbnail_h *thumb) _thumb->request_id = 0; _thumb->file_path = NULL; - _thumb->dst_width = 0; - _thumb->dst_height = 0; + _thumb->dst_width = CONTENT_THUMB_DEFAULT_WIDTH; + _thumb->dst_height = CONTENT_THUMB_DEFAULT_HEIGHT; *thumb = (thumbnail_h)_thumb; @@ -135,11 +135,6 @@ int thumbnail_util_extract(thumbnail_h thumb, thumbnail_extracted_cb callback, v _thumb_cb->thumb_extract_cb = callback; } - if (_thumb->dst_width == 0 || _thumb->dst_height == 0) { - _thumb->dst_width = 320; - _thumb->dst_height = 240; - } - res = thumbnail_request_extract_raw_data_async(_thumb->request_id, _thumb->file_path, _thumb->dst_width, _thumb->dst_height, (ThumbRawFunc)__thumbnail_util_extract_completed_cb, (void *)_thumb_cb, tzplatform_getuid(TZ_USER_NAME)); ret = __thumbnail_util_error_capi(res); if (ret != THUMBNAIL_UTIL_ERROR_NONE)