summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinje Ahn <minje.ahn@samsung.com>2020-05-20 07:51:39 (GMT)
committerMinje Ahn <minje.ahn@samsung.com>2020-05-20 07:51:39 (GMT)
commited88ae5e86ceff6f801c3e33e201b0cf343de6b2 (patch)
treedcce52ab65df285be6539b2c2fdace3bf86ef939
parentfbea258a8607322938f8e9defb4de941f2de049a (diff)
downloadlibmedia-thumbnail-accepted/tizen_unified.zip
libmedia-thumbnail-accepted/tizen_unified.tar.gz
libmedia-thumbnail-accepted/tizen_unified.tar.bz2
PNG needs more time when encoding/decoding. Change-Id: Ic0436dff1e377ef48d28feba38eadfa4b48ea6f5 Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
-rwxr-xr-xsrc/media-thumb-internal.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/media-thumb-internal.c b/src/media-thumb-internal.c
index 3334a48..bf9fd63 100755
--- a/src/media-thumb-internal.c
+++ b/src/media-thumb-internal.c
@@ -52,9 +52,13 @@ int _media_thumb_get_hash_name(const char *file_full_path, char *thumb_hash_path
}
ret = ms_user_get_root_thumb_store_path(uid, &get_path);
- if (get_path != NULL)
- ret_len = snprintf(thumb_hash_path, max_thumb_path - 1, "%s/.%s-%s.png", get_path, file_ext, hash_name);
+ if (get_path != NULL) {
+ if (strcasecmp(file_ext, "PNG") == 0)
+ ret_len = snprintf(thumb_hash_path, max_thumb_path - 1, "%s/.%s-%s.png", get_path, file_ext, hash_name);
+ else
+ ret_len = snprintf(thumb_hash_path, max_thumb_path - 1, "%s/.%s-%s.jpg", get_path, file_ext, hash_name);
+ }
SAFE_FREE(get_path);
if ((ret_len < 0) || (ret_len > (int)max_thumb_path)) {