Use define instead of hard coding 13/227413/3
authorhj kim <backto.kim@samsung.com>
Thu, 12 Mar 2020 00:59:28 +0000 (09:59 +0900)
committerhj kim <backto.kim@samsung.com>
Fri, 13 Mar 2020 05:53:11 +0000 (05:53 +0000)
Change-Id: Ifc004cdb2285092481e69d076ca5505924adffc8

src/thumbnail_util.c

index 4273b22..c234c95 100644 (file)
@@ -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)