summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMinje Ahn <minje.ahn@samsung.com>2018-01-31 08:41:16 (GMT)
committerMinje Ahn <minje.ahn@samsung.com>2018-01-31 08:41:16 (GMT)
commit05a439dfaff5a37ef343f52be5698fde6278c310 (patch)
tree861e61522d692f9ac658db2ff62ddcb136f0e72e /src
parent5db1a5e180bf6761b3cf814d055b7ff34f20e26d (diff)
downloadlibmedia-thumbnail-05a439dfaff5a37ef343f52be5698fde6278c310.zip
libmedia-thumbnail-05a439dfaff5a37ef343f52be5698fde6278c310.tar.gz
libmedia-thumbnail-05a439dfaff5a37ef343f52be5698fde6278c310.tar.bz2
Modified return error valuerefs/changes/34/168834/1
Change-Id: I2d9d31b4780c2301e47aafa4d83866ff858f38d3 Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/media-thumb-internal.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/media-thumb-internal.c b/src/media-thumb-internal.c
index 693293a..9ada79e 100755
--- a/src/media-thumb-internal.c
+++ b/src/media-thumb-internal.c
@@ -321,7 +321,10 @@ ERROR:
mm_util_destroy_handle(dst_img);
mm_file_destroy_content_attrs(content);
- return err;
+ if (err != MS_MEDIA_ERR_NONE)
+ return MS_MEDIA_ERR_INTERNAL;
+
+ return MS_MEDIA_ERR_NONE;
}
int _media_thumb_get_hash_name(const char *file_full_path, char *thumb_hash_path, size_t max_thumb_path, uid_t uid)