diff options
-rwxr-xr-x | server/thumb-server-internal.c | 4 | ||||
-rwxr-xr-x | src/ipc/media-thumb-ipc.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/server/thumb-server-internal.c b/server/thumb-server-internal.c index f42d1d8..acecb5d 100755 --- a/server/thumb-server-internal.c +++ b/server/thumb-server-internal.c @@ -450,7 +450,7 @@ static gboolean __thumb_server_send_msg_to_agent(int msg_type) ms_thumb_server_msg send_msg; sock_info.port = MS_THUMB_COMM_PORT; - if (ms_ipc_create_client_socket(MS_PROTOCOL_TCP, MS_TIMEOUT_SEC_10, &sock_info) < 0) { + if (ms_ipc_create_client_socket(MS_TIMEOUT_SEC_10, &sock_info) < 0) { thumb_err("ms_ipc_create_server_socket failed"); return FALSE; } @@ -512,7 +512,7 @@ gboolean _thumb_server_prepare_socket(int *sock_fd) memset((void *)&res_msg, 0, sizeof(res_msg)); serv_port = MS_THUMB_DAEMON_PORT; - if (ms_ipc_create_server_socket(MS_PROTOCOL_TCP, serv_port, &sock) < 0) { + if (ms_ipc_create_server_socket(serv_port, &sock) < 0) { thumb_err("ms_ipc_create_server_socket failed"); return FALSE; } diff --git a/src/ipc/media-thumb-ipc.c b/src/ipc/media-thumb-ipc.c index 29ce6b1..21caafb 100755 --- a/src/ipc/media-thumb-ipc.c +++ b/src/ipc/media-thumb-ipc.c @@ -551,7 +551,7 @@ _media_thumb_request(int msg_type, const char *origin_path, char *thumb_path, in int pid; sock_info.port = MS_THUMB_CREATOR_PORT; - err = ms_ipc_create_client_socket(MS_PROTOCOL_TCP, MS_TIMEOUT_SEC_10, &sock_info); + err = ms_ipc_create_client_socket(MS_TIMEOUT_SEC_10, &sock_info); if (err != MS_MEDIA_ERR_NONE) { thumb_err("ms_ipc_create_client_socket failed"); return err; @@ -773,7 +773,7 @@ int _media_thumb_send_request() int pid; sock_info.port = MS_THUMB_CREATOR_PORT; - err = ms_ipc_create_client_socket(MS_PROTOCOL_TCP, MS_TIMEOUT_SEC_10, &sock_info); + err = ms_ipc_create_client_socket(MS_TIMEOUT_SEC_10, &sock_info); if (err != MS_MEDIA_ERR_NONE) { thumb_err("ms_ipc_create_client_socket failed"); return err; @@ -893,7 +893,7 @@ int _media_thumb_raw_data_send_request() int pid; sock_info.port = MS_THUMB_CREATOR_PORT; - err = ms_ipc_create_client_socket(MS_PROTOCOL_TCP, MS_TIMEOUT_SEC_10, &sock_info); + err = ms_ipc_create_client_socket(MS_TIMEOUT_SEC_10, &sock_info); if (err != MS_MEDIA_ERR_NONE) { thumb_err("ms_ipc_create_client_socket failed"); return err; |