summaryrefslogtreecommitdiff
path: root/src/media-thumb-internal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/media-thumb-internal.c')
-rwxr-xr-xsrc/media-thumb-internal.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/media-thumb-internal.c b/src/media-thumb-internal.c
index 6526d62..bf3be75 100755
--- a/src/media-thumb-internal.c
+++ b/src/media-thumb-internal.c
@@ -270,8 +270,7 @@ int _media_thumb_rotate_thumb(unsigned char *data, int size, int *width, int *he
return MS_MEDIA_ERR_NONE;
}
-int _media_thumb_get_proper_thumb_size(int orig_w, int orig_h,
- int *thumb_w, int *thumb_h)
+int _media_thumb_get_proper_thumb_size(int orig_w, int orig_h, int *thumb_w, int *thumb_h)
{
BOOL portrait = FALSE;
double ratio;
@@ -1141,11 +1140,7 @@ int _media_thumb_get_hash_name(const char *file_full_path, char *thumb_hash_path
return MS_MEDIA_ERR_INTERNAL;
}
- if (store_type == MS_USER_STORAGE_INTERNAL) {
- ret = ms_user_get_default_thumb_store_path(uid, &get_path);
- if (get_path != NULL)
- ret_len = snprintf(thumb_hash_path, max_thumb_path - 1, "%s/.%s-%s.jpg", get_path, file_ext, hash_name);
- } else if (store_type == MS_USER_STORAGE_EXTERNAL) {
+ if (store_type == MS_USER_STORAGE_EXTERNAL) {
ret = ms_user_get_mmc_thumb_store_path(uid, &get_path);
if (get_path != NULL)
ret_len = snprintf(thumb_hash_path, max_thumb_path - 1, "%s/.%s-%s.jpg", get_path, file_ext, hash_name);