MMHandleType tag = (MMHandleType) NULL;
char *p = NULL;
int size = 0;
- char *err_msg = NULL;
int _cdis_value = 0;
mm_util_magick_rotate_type _rot_type = MM_UTIL_ROTATE_NUM;
return;
}
- err = mm_file_get_attrs(tag, &err_msg, MM_FILE_TAG_ROTATE, &p, &size, NULL);
+ err = mm_file_get_attrs(tag, MM_FILE_TAG_ROTATE, &p, &size, NULL);
if (err == FILEINFO_ERROR_NONE && size >= 0) {
if (p == NULL) {
_rot_type = MM_UTIL_ROTATE_0;
} else {
thumb_dbg("There is NOT tag rotate");
_rot_type = MM_UTIL_ROTATE_0;
- SAFE_FREE(err_msg);
}
- err = mm_file_get_attrs(tag, &err_msg, MM_FILE_TAG_CDIS, &_cdis_value, NULL);
- if (err != FILEINFO_ERROR_NONE) {
+ err = mm_file_get_attrs(tag, MM_FILE_TAG_CDIS, &_cdis_value, NULL);
+ if (err != FILEINFO_ERROR_NONE)
_cdis_value = 0;
- SAFE_FREE(err_msg);
- }
*rot_type = _rot_type;
*cdis_value = _cdis_value;
{
int err = MS_MEDIA_ERR_NONE;
MMHandleType content = (MMHandleType) NULL;
- char *err_msg = NULL;
int _video_track_num = 0;
int _width = 0;
int _height = 0;
return MS_MEDIA_ERR_INTERNAL;
}
- err = mm_file_get_attrs(content, &err_msg, MM_FILE_CONTENT_VIDEO_TRACK_COUNT, &_video_track_num, NULL);
+ err = mm_file_get_attrs(content, MM_FILE_CONTENT_VIDEO_TRACK_COUNT, &_video_track_num, NULL);
if (err != FILEINFO_ERROR_NONE) {
- thumb_err("mm_file_get_attrs fails : %s", err_msg);
- SAFE_FREE(err_msg);
+ thumb_err("mm_file_get_attrs fails : %d", err);
mm_file_destroy_content_attrs(content);
return MS_MEDIA_ERR_INTERNAL;
}
return MS_MEDIA_ERR_NONE;
}
- err = mm_file_get_attrs(content, &err_msg,
+ err = mm_file_get_attrs(content,
MM_FILE_CONTENT_VIDEO_WIDTH,
&_width,
MM_FILE_CONTENT_VIDEO_HEIGHT,
&_size, NULL);
if (err != FILEINFO_ERROR_NONE) {
- thumb_err("mm_file_get_attrs fails : %s", err_msg);
- SAFE_FREE(err_msg);
+ thumb_err("mm_file_get_attrs fails : %d", err);
mm_file_destroy_content_attrs(content);
return MS_MEDIA_ERR_INTERNAL;
}