summaryrefslogtreecommitdiff
path: root/src/common/media-svc-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/media-svc-util.c')
-rw-r--r--src/common/media-svc-util.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/common/media-svc-util.c b/src/common/media-svc-util.c
index 02dbfef..eafa52e 100644
--- a/src/common/media-svc-util.c
+++ b/src/common/media-svc-util.c
@@ -706,10 +706,7 @@ int _media_svc_get_thumbnail_path(media_svc_media_type_e media_type, char *thumb
snprintf(thumb_path, MEDIA_SVC_PATHNAME_SIZE, "%s/.%s-%s.%s", thumb_dir, file_ext, hash, thumbfile_ext);
} else {
- if (strcasecmp(file_ext, "PNG") == 0)
- snprintf(thumb_path, MEDIA_SVC_PATHNAME_SIZE, "%s/.%s-%s.png", thumb_dir, file_ext, hash);
- else
- snprintf(thumb_path, MEDIA_SVC_PATHNAME_SIZE, "%s/.%s-%s.jpg", thumb_dir, file_ext, hash);
+ snprintf(thumb_path, MEDIA_SVC_PATHNAME_SIZE, "%s/.%s-%s.png", thumb_dir, file_ext, hash);
}
SAFE_FREE(thumb_dir);
@@ -1645,7 +1642,7 @@ int _media_svc_create_thumbnail(const char *path, char *thumb_path, media_svc_me
media_svc_sec_debug("Path[%s] Type[%d]", path, media_type);
//1. make hash path
- ret = _media_svc_get_thumbnail_path(media_type, thumb_path, path, THUMB_EXT, uid);
+ ret = _media_svc_get_thumbnail_path(media_type, thumb_path, path, NULL, uid);
if (ret != MS_MEDIA_ERR_NONE) {
media_svc_error("_media_svc_get_thumbnail_path failed - %d", ret);
SAFE_STRLCPY(thumb_path, "", MAX_FILEPATH_LEN);