summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjiyong.min <jiyong.min@samsung.com>2019-01-10 04:50:48 (GMT)
committerJiyong Min <jiyong.min@samsung.com>2019-01-10 04:52:23 (GMT)
commite0a1aaf8e84daed5bf712beaa8cae0bae29ab2af (patch)
tree6c2ca2f00f54401fb61381d4d48d07ee07cc6f9a
parent248a3a5c689466bf4f99abd2fde7c485acd24466 (diff)
downloadlibmedia-thumbnail-tizen_4.0.zip
libmedia-thumbnail-tizen_4.0.tar.gz
libmedia-thumbnail-tizen_4.0.tar.bz2
Fix the log position to avoid errno change for thumbnail_util_extract().tizen_4.0refs/changes/58/197158/1
Change-Id: I8b0559f9ebfedbe208ee228a7611b3eabb2d8a9c
-rwxr-xr-xsrc/media-thumbnail.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/media-thumbnail.c b/src/media-thumbnail.c
index da97a69..f0a0549 100755
--- a/src/media-thumbnail.c
+++ b/src/media-thumbnail.c
@@ -122,11 +122,13 @@ int thumbnail_request_extract_raw_data_async(int request_id, const char *origin_
/* check the file exits actually */
exist = open(origin_path, O_RDONLY);
if (exist < 0) {
- thumb_err("Fail to open original_path[%s]", origin_path);
- if (errno == EACCES || errno == EPERM)
+ if (errno == EACCES || errno == EPERM) {
+ thumb_err("Fail to open original_path[%s]: Permission Denied", origin_path);
return MS_MEDIA_ERR_PERMISSION_DENIED;
- else
+ } else {
+ thumb_err("Fail to open original_path[%s]: Invalid Path", origin_path);
return MS_MEDIA_ERR_INVALID_PARAMETER;
+ }
}
close(exist);