Remove unused 'err_attr_name' for 'mm_file_get_attrs' 49/222849/1 accepted/tizen/unified/20200130.214714 submit/tizen/20200122.012604 submit/tizen/20200122.230050 submit/tizen/20200130.013933
authorjiyong.min <jiyong.min@samsung.com>
Tue, 21 Jan 2020 00:07:37 +0000 (09:07 +0900)
committerjiyong.min <jiyong.min@samsung.com>
Tue, 21 Jan 2020 00:07:37 +0000 (09:07 +0900)
Change-Id: I8d5735ccd586c7e8e71a1aeb01c1b29c937dc54e

packaging/capi-media-thumbnail-util.spec
src/thumbnail_util.c

index 3b0acad..3404f27 100755 (executable)
@@ -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
index 128feef..aff6477 100644 (file)
@@ -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;
                }