From 5db1a5e180bf6761b3cf814d055b7ff34f20e26d Mon Sep 17 00:00:00 2001 From: Minje Ahn Date: Wed, 31 Jan 2018 13:22:50 +0900 Subject: Thumbnail-server code refactoring 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 --- server/thumb-server-internal.c | 2 +- server/thumb-server.c | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'server') 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*/ -- cgit v1.2.3