}
return false;
}
-
+#if 0
static int __media_svc_resize_artwork(const char *path, const char *img_format)
{
int ret = MS_MEDIA_ERR_NONE;
return ret;
}
-
+#endif
static int __media_svc_safe_atoi(char *buffer, int *si)
{
char *end = NULL;
if (ret != MS_MEDIA_ERR_NONE) {
media_svc_error("Fail to Save Image");
} else {
+ content_info->thumbnail_path = g_strdup(thumb_path);
+ /* NOTICE : Prevent resize for performance (2020.02.07)
+ * In most cases, artwork's format is jpeg and size is under MEDIA_SVC_ARTWORK_SIZE * MEDIA_SVC_ARTWORK_SIZE.
+ * So, doing mm_util_extract_image_info to check image size is a time-consuming task.
+ */
+#if 0
/* albumart resizing */
ret = __media_svc_resize_artwork(thumb_path, p);
if (ret != MS_MEDIA_ERR_NONE) {
} else {
content_info->thumbnail_path = g_strdup(thumb_path);
}
+#endif
}
}
}