From: jiyong.min Date: Tue, 21 Jan 2020 00:07:37 +0000 (+0900) Subject: Remove unused 'err_attr_name' for 'mm_file_get_attrs' X-Git-Tag: submit/tizen_5.5/20200123.020528^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F92%2F223092%2F1;p=platform%2Fcore%2Fapi%2Fthumbnail-util.git Remove unused 'err_attr_name' for 'mm_file_get_attrs' Change-Id: I8d5735ccd586c7e8e71a1aeb01c1b29c937dc54e (cherry picked from commit dce91ae1bad8a4a761f99932d2d6eca124821edc) --- diff --git a/packaging/capi-media-thumbnail-util.spec b/packaging/capi-media-thumbnail-util.spec index 3b0acad..3404f27 100755 --- a/packaging/capi-media-thumbnail-util.spec +++ b/packaging/capi-media-thumbnail-util.spec @@ -1,6 +1,6 @@ Name: capi-media-thumbnail-util Summary: A media thumbnail util library in Tizen Native API -Version: 0.1.18 +Version: 0.1.19 Release: 1 Group: Multimedia/API License: Apache-2.0 diff --git a/src/thumbnail_util.c b/src/thumbnail_util.c index 128feef..aff6477 100644 --- a/src/thumbnail_util.c +++ b/src/thumbnail_util.c @@ -287,7 +287,6 @@ static int __thumbnail_util_extract_video(thumbnail_data_s *thumb) MMHandleType tag = NULL; void *frame = NULL; int video_track_num = 0; - char *err_msg = NULL; int size = 0; unsigned int width = 0; unsigned int height = 0; @@ -304,11 +303,9 @@ static int __thumbnail_util_extract_video(thumbnail_data_s *thumb) //1. get CDIS ret = mm_file_create_tag_attrs(&tag, thumb->path); if (ret == FILEINFO_ERROR_NONE) { - ret = mm_file_get_attrs(tag, &err_msg, MM_FILE_TAG_CDIS, &cdis_value, NULL); - if (ret != FILEINFO_ERROR_NONE) { + ret = mm_file_get_attrs(tag, MM_FILE_TAG_CDIS, &cdis_value, NULL); + if (ret != FILEINFO_ERROR_NONE) cdis_value = 0; - SAFE_FREE(err_msg); - } } else { cdis_value = 0; } @@ -327,15 +324,14 @@ static int __thumbnail_util_extract_video(thumbnail_data_s *thumb) thumbnail_util_retvm_if(ret != FILEINFO_ERROR_NONE, THUMBNAIL_UTIL_ERROR_INVALID_OPERATION, "mm_file_create_content_attrs fails"); //2. get frame - ret = mm_file_get_attrs(content, &err_msg, MM_FILE_CONTENT_VIDEO_TRACK_COUNT, &video_track_num, NULL); + ret = mm_file_get_attrs(content, MM_FILE_CONTENT_VIDEO_TRACK_COUNT, &video_track_num, NULL); if (ret != FILEINFO_ERROR_NONE) { - thumbnail_util_error("mm_file_get_attrs fails : %s", err_msg); - SAFE_FREE(err_msg); + thumbnail_util_error("mm_file_get_attrs fails : %d", ret); goto ERROR; } if (video_track_num > 0) { - ret = mm_file_get_attrs(content, &err_msg, + ret = mm_file_get_attrs(content, MM_FILE_CONTENT_VIDEO_WIDTH, &width, MM_FILE_CONTENT_VIDEO_HEIGHT, @@ -344,8 +340,7 @@ static int __thumbnail_util_extract_video(thumbnail_data_s *thumb) &size, NULL); if (ret != FILEINFO_ERROR_NONE) { - thumbnail_util_error("mm_file_get_attrs fails : %s", err_msg); - SAFE_FREE(err_msg); + thumbnail_util_error("mm_file_get_attrs fails : %d", ret); goto ERROR; }