summaryrefslogtreecommitdiff
path: root/src/media-thumbnail.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/media-thumbnail.c')
-rwxr-xr-xsrc/media-thumbnail.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/media-thumbnail.c b/src/media-thumbnail.c
index 2fb3065..554988b 100755
--- a/src/media-thumbnail.c
+++ b/src/media-thumbnail.c
@@ -36,7 +36,7 @@ int thumbnail_request_from_db(const char *origin_path, char *thumb_path, int max
return MS_MEDIA_ERR_INVALID_PARAMETER;
}
- if (!g_file_test(origin_path, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR)) {
+ if (!g_file_test(origin_path, G_FILE_TEST_IS_REGULAR)) {
thumb_err("Original path(%s) doesn't exist.", origin_path);
return MS_MEDIA_ERR_INVALID_PARAMETER;
}
@@ -75,9 +75,9 @@ int thumbnail_request_from_db_async(unsigned int request_id, const char *origin_
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) doesn't exist.", origin_path);
- return MS_MEDIA_ERR_INVALID_PARAMETER;
+ if (!g_file_test(origin_path, G_FILE_TEST_IS_REGULAR)) {
+ thumb_err("Original path(%s) doesn't exist.", origin_path);
+ return MS_MEDIA_ERR_INVALID_PARAMETER;
}
ms_user_storage_type_e store_type = -1;