summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinje Ahn <minje.ahn@samsung.com>2017-07-11 00:15:41 (GMT)
committerMinje Ahn <minje.ahn@samsung.com>2017-07-11 00:15:41 (GMT)
commita0279549d93bc61a5edea68e819a53f2668b0915 (patch)
tree74405ab520e9f0968c9701efdf07b0ebeb64d0ee
parentfadf003e720f369b533b726998a84f2154f3853b (diff)
downloadlibmedia-thumbnail-a0279549d93bc61a5edea68e819a53f2668b0915.zip
libmedia-thumbnail-a0279549d93bc61a5edea68e819a53f2668b0915.tar.gz
libmedia-thumbnail-a0279549d93bc61a5edea68e819a53f2668b0915.tar.bz2
Remove same caserefs/changes/09/138009/1
Change-Id: I8019b52df2f006963b9eabb3438f84a3af19d4df Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
-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);