From 93c03dda46bb3a03eb84df42cdd6885cfa1c058c Mon Sep 17 00:00:00 2001 From: "jiyong.min" Date: Mon, 11 Mar 2019 13:47:42 +0900 Subject: [PATCH] Replace mm-utility function to mm_image_xxx() Change-Id: Ib2b619a1d1c5eb090d48db5589918bea2149a657 --- src/common/media-svc-util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/media-svc-util.c b/src/common/media-svc-util.c index ce3239e..0923f9f 100755 --- a/src/common/media-svc-util.c +++ b/src/common/media-svc-util.c @@ -1911,7 +1911,7 @@ int _media_svc_create_thumbnail(const char *path, char *thumb_path, int max_leng media_svc_debug("Origin:W[%d] H[%d] Proper:W[%d] H[%d]", origin_w, origin_h, thumb_w, thumb_h); - ret = mm_util_create_handle(&img, (unsigned char *)frame, origin_w, origin_h, size, MM_UTIL_COLOR_RGB24); + ret = mm_image_create_image(origin_w, origin_h, MM_UTIL_COLOR_RGB24, (unsigned char *)frame, size, &img); if (origin_w > thumb_w || origin_h > thumb_h) { if (rot_type != MM_UTIL_ROTATE_0) { ret = mm_util_resize_B_B(img, thumb_w, thumb_h, &resize_img); @@ -1930,8 +1930,8 @@ int _media_svc_create_thumbnail(const char *path, char *thumb_path, int max_leng } ERROR: - mm_util_destroy_handle(img); - mm_util_destroy_handle(resize_img); + mm_image_destroy_image(img); + mm_image_destroy_image(resize_img); mm_file_destroy_content_attrs(content); if (ret != MS_MEDIA_ERR_NONE) -- 2.7.4