From 17195bf90d1d3a98bafcbf2eaa642e877047a8b7 Mon Sep 17 00:00:00 2001 From: hj kim Date: Thu, 1 Feb 2018 17:01:08 +0900 Subject: [PATCH] Use mm_util_extract_image_info() instead of ImgGetImageInfo() in libmedia-thumbnail Change-Id: I03d1216ec296373cd3222ec5b0ad47c068422564 --- src/common/media-svc-util.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/common/media-svc-util.c b/src/common/media-svc-util.c index 167ffa6..24a3e2e 100755 --- a/src/common/media-svc-util.c +++ b/src/common/media-svc-util.c @@ -42,7 +42,6 @@ #include #include #include -#include #include #include "media-util-err.h" #include "media-svc-util.h" @@ -520,12 +519,12 @@ static int __media_svc_resize_artwork(const char *path, const char *img_format) unsigned int height = 0; unsigned int resized_width = 0; unsigned int resized_height = 0; - ImgCodecType img_type = IMG_CODEC_NONE; + mm_util_img_code_type img_type = IMG_CODEC_NONE; if ((strstr(img_format, "jpeg") != NULL) || (strstr(img_format, "jpg") != NULL) || (strstr(img_format, "JPG") != NULL)) { media_svc_debug("type [jpeg]"); - ImgGetImageInfo(path, &img_type, &width, &height); + mm_util_extract_image_info(path, &img_type, &width, &height); if (width <= MEDIA_SVC_ARTWORK_SIZE || height <= MEDIA_SVC_ARTWORK_SIZE) { media_svc_debug("No need resizing"); @@ -1233,9 +1232,9 @@ GET_WIDTH_HEIGHT: /*Get image width, height*/ unsigned int img_width = 0; unsigned int img_height = 0; - ImgCodecType img_type = IMG_CODEC_NONE; + mm_util_img_code_type img_type = IMG_CODEC_NONE; - ImgGetImageInfo(path, &img_type, &img_width, &img_height); + mm_util_extract_image_info(path, &img_type, &img_width, &img_height); if (content_info->media_meta.width == 0) content_info->media_meta.width = img_width; -- 2.7.4