summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorMinje Ahn <minje.ahn@samsung.com>2018-01-31 04:22:50 (GMT)
committerMinje ahn <minje.ahn@samsung.com>2018-01-31 06:11:14 (GMT)
commit5db1a5e180bf6761b3cf814d055b7ff34f20e26d (patch)
tree4bc81f44736c4343fe830934637d7c3808512e3b /server
parent96113cadb625d3960d04910107bd6c51153ed420 (diff)
downloadlibmedia-thumbnail-5db1a5e180bf6761b3cf814d055b7ff34f20e26d.zip
libmedia-thumbnail-5db1a5e180bf6761b3cf814d055b7ff34f20e26d.tar.gz
libmedia-thumbnail-5db1a5e180bf6761b3cf814d055b7ff34f20e26d.tar.bz2
Thumbnail-server code refactoringrefs/changes/98/168798/6
Remove the code related with agif Refactoring functions for getting media type and original w/h Remove unused dependency Change-Id: I08162ecfd41e1e3dd25833bf625d3206639d1e32 Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Diffstat (limited to 'server')
-rwxr-xr-xserver/thumb-server-internal.c2
-rwxr-xr-xserver/thumb-server.c7
2 files changed, 3 insertions, 6 deletions
diff --git a/server/thumb-server-internal.c b/server/thumb-server-internal.c
index 22a0ff8..a4b1142 100755
--- a/server/thumb-server-internal.c
+++ b/server/thumb-server-internal.c
@@ -331,7 +331,7 @@ int _media_thumb_process(thumbMsg *req_msg, thumbMsg *res_msg)
thumb_path = res_msg->dst_path;
res_msg->status = MS_MEDIA_ERR_NONE;
- 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("origin_path does not exist in file system.");
res_msg->status = MS_MEDIA_ERR_FILE_NOT_EXIST;
return MS_MEDIA_ERR_FILE_NOT_EXIST;
diff --git a/server/thumb-server.c b/server/thumb-server.c
index 4a24e0a..4bb521f 100755
--- a/server/thumb-server.c
+++ b/server/thumb-server.c
@@ -68,13 +68,10 @@ int main(void)
g_source_set_callback(source_evas_init, _thumb_daemon_start_jobs, NULL, NULL);
g_source_attach(source_evas_init, context);
- thumb_dbg("************************************");
- thumb_dbg("*** Thumbnail server is running ***");
- thumb_dbg("************************************");
-
+ thumb_info("Thumbnail server is running");
g_main_loop_run(g_thumb_server_mainloop);
- thumb_dbg("Thumbnail server is shutting down...");
+ thumb_info("Thumbnail server is shutting down");
g_io_channel_shutdown(channel, FALSE, NULL);
g_io_channel_unref(channel);
/*close socket*/