summaryrefslogtreecommitdiff
path: root/server/thumb-server-internal.c
diff options
context:
space:
mode:
authorMinje Ahn <minje.ahn@samsung.com>2016-03-23 00:37:57 (GMT)
committerMinje Ahn <minje.ahn@samsung.com>2016-03-23 00:43:25 (GMT)
commit7020eb25112070454fe450cab3b0b7215d8f90cc (patch)
tree4e16aa2b7521801db235736622ebb98704668b6c /server/thumb-server-internal.c
parent5ab78ec86380f306e30b6ac419a0e7bcb21dadbe (diff)
downloadlibmedia-thumbnail-7020eb25112070454fe450cab3b0b7215d8f90cc.zip
libmedia-thumbnail-7020eb25112070454fe450cab3b0b7215d8f90cc.tar.gz
libmedia-thumbnail-7020eb25112070454fe450cab3b0b7215d8f90cc.tar.bz2
Change-Id: I90d6103c199c4a7e209f16e1e0e6f648f488e866 Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Diffstat (limited to 'server/thumb-server-internal.c')
-rwxr-xr-xserver/thumb-server-internal.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/server/thumb-server-internal.c b/server/thumb-server-internal.c
index eb1e912..270c496 100755
--- a/server/thumb-server-internal.c
+++ b/server/thumb-server-internal.c
@@ -635,10 +635,9 @@ int _thumbnail_get_raw_data(const char *origin_path,
return MS_MEDIA_ERR_INVALID_PARAMETER;
}
- if (!g_file_test
- (origin_path, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR)) {
- thumb_err("Original path (%s) does not exist", origin_path);
- return MS_MEDIA_ERR_INVALID_PARAMETER;
+ if (!g_file_test(origin_path, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR)) {
+ thumb_err("Original path (%s) does not exist", origin_path);
+ return MS_MEDIA_ERR_INVALID_PARAMETER;
}
int file_type = THUMB_NONE_TYPE;