diff options
author | ji.yong.seo <ji.yong.seo@samsung.com> | 2015-10-02 18:33:43 +0900 |
---|---|---|
committer | hj kim <backto.kim@samsung.com> | 2015-11-02 21:29:07 -0800 |
commit | 9b79cfa94c6d68e268bbab7d428364c7a65d95c7 (patch) | |
tree | 8c89bc04cd986b6cd48cb7e0773329628dce9494 | |
parent | 904220335928dd3cb5b6af666d897d38551e8b8e (diff) | |
download | libmedia-thumbnail-accepted/tizen/tv/20151103.105451.tar.gz libmedia-thumbnail-accepted/tizen/tv/20151103.105451.tar.bz2 libmedia-thumbnail-accepted/tizen/tv/20151103.105451.zip |
Remove dependency with libmm-common.submit/tizen/20151103.065424submit/tizen/20151103.053124accepted/tizen/wearable/20151103.105502accepted/tizen/tv/20151103.105451accepted/tizen/mobile/20151103.105438
Change-Id: I29a25c37316914278e09dceb828abd6014a2f399
Signed-off-by: ji.yong.seo <ji.yong.seo@samsung.com>
-rwxr-xr-x | src/media-thumb-internal.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/media-thumb-internal.c b/src/media-thumb-internal.c index 8ea9637..02e033a 100755 --- a/src/media-thumb-internal.c +++ b/src/media-thumb-internal.c @@ -38,7 +38,6 @@ #include <unistd.h> #include <mm_file.h> -#include <mm_error.h> #include <mm_util_imgp.h> #include <mm_util_jpeg.h> #include <Evas.h> @@ -1101,9 +1100,9 @@ int _media_thumb_video(const char *origin_path, err = mm_file_create_tag_attrs(&tag, origin_path); mm_util_img_rotate_type rot_type = MM_UTIL_ROTATE_0; - if (err == MM_ERROR_NONE) { + if (err == FILEINFO_ERROR_NONE) { err = mm_file_get_attrs(tag, &err_msg, MM_FILE_TAG_ROTATE, &p, &size, NULL); - if (err == MM_ERROR_NONE && size >= 0) { + if (err == FILEINFO_ERROR_NONE && size >= 0) { if (p == NULL) { rot_type = MM_UTIL_ROTATE_0; } else { @@ -1125,7 +1124,7 @@ int _media_thumb_video(const char *origin_path, } err = mm_file_get_attrs(tag, &err_msg, MM_FILE_TAG_CDIS, &cdis_value, NULL); - if (err != MM_ERROR_NONE) { + if (err != FILEINFO_ERROR_NONE) { cdis_value = 0; SAFE_FREE(err_msg); } @@ -1136,7 +1135,7 @@ int _media_thumb_video(const char *origin_path, } err = mm_file_destroy_tag_attrs(tag); - if (err != MM_ERROR_NONE) { + if (err != FILEINFO_ERROR_NONE) { thumb_err("fail to free tag attr - err(%x)", err); } @@ -1147,13 +1146,13 @@ int _media_thumb_video(const char *origin_path, err = mm_file_create_content_attrs(&content, origin_path); } - if (err != MM_ERROR_NONE) { + if (err != FILEINFO_ERROR_NONE) { thumb_err("mm_file_create_content_attrs fails : %d", err); return MS_MEDIA_ERR_INTERNAL; } err = mm_file_get_attrs(content, &err_msg, MM_FILE_CONTENT_VIDEO_TRACK_COUNT, &video_track_num, NULL); - if (err != MM_ERROR_NONE) { + if (err != FILEINFO_ERROR_NONE) { thumb_err("mm_file_get_attrs fails : %s", err_msg); SAFE_FREE(err_msg); mm_file_destroy_content_attrs(content); @@ -1171,7 +1170,7 @@ int _media_thumb_video(const char *origin_path, MM_FILE_CONTENT_VIDEO_THUMBNAIL, &frame, /* raw image is RGB888 format */ &size, NULL); - if (err != MM_ERROR_NONE) { + if (err != FILEINFO_ERROR_NONE) { thumb_err("mm_file_get_attrs fails : %s", err_msg); SAFE_FREE(err_msg); mm_file_destroy_content_attrs(content); @@ -1236,7 +1235,7 @@ int _media_thumb_video(const char *origin_path, } err = mm_util_get_image_size(MM_UTIL_IMG_FMT_RGB888, r_w, r_h, &r_size); - if (err != MM_ERROR_NONE) { + if (err != FILEINFO_ERROR_NONE) { thumb_err("mm_util_get_image_size failed : %d", err); SAFE_FREE(thumb_info->data); return err; @@ -1249,7 +1248,7 @@ int _media_thumb_video(const char *origin_path, rotated, &r_w, &r_h, rot_type); - if (err != MM_ERROR_NONE) { + if (err != FILEINFO_ERROR_NONE) { thumb_err("mm_util_rotate_image failed : %d", err); SAFE_FREE(thumb_info->data); SAFE_FREE(rotated); |