mmf_error = mm_file_get_attrs(tag, MM_FILE_TAG_ARTWORK_MIME, &p, &artwork_mime_size, NULL);
if ((mmf_error == FILEINFO_ERROR_NONE) && (artwork_mime_size > 0)) {
ret = _media_svc_get_thumbnail_path(content_info->media_type, thumb_path, content_info->path, p, uid);
- if (ret != MS_MEDIA_ERR_NONE)
+ if (ret != MS_MEDIA_ERR_NONE) {
media_svc_error("Fail to Get Thumbnail Path");
-
- if (strlen(thumb_path) > 0) {
+ } else {
ret = __media_svc_save_image(image, size, thumb_path, uid);
if (ret != MS_MEDIA_ERR_NONE) {
media_svc_error("Fail to Save Image");