From 90ce399da02cfb7cb25bf8cb7127a1be1ff17396 Mon Sep 17 00:00:00 2001 From: Minje Ahn Date: Tue, 1 Oct 2019 16:36:56 +0900 Subject: [PATCH] Integrate IPC related errors Change-Id: I2dc932b079e4f06edea2be1091ae506d075d2598 Signed-off-by: Minje Ahn --- src/media_content.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/media_content.c b/src/media_content.c index e507715..18bc11f 100644 --- a/src/media_content.c +++ b/src/media_content.c @@ -147,8 +147,7 @@ int _content_error_capi(int content_error) /* Internal operation error*/ else if ((content_error == MS_MEDIA_ERR_INVALID_PARAMETER) || - (content_error == MS_MEDIA_ERR_INVALID_PATH) || - (content_error == MS_MEDIA_ERR_THUMB_DUPLICATED_REQUEST)) + (content_error == MS_MEDIA_ERR_INVALID_PATH)) return MEDIA_CONTENT_ERROR_INVALID_PARAMETER; else if (content_error == MS_MEDIA_ERR_OUT_OF_MEMORY) @@ -162,7 +161,7 @@ int _content_error_capi(int content_error) return MEDIA_CONTENT_ERROR_DB_FAILED; /* IPC operation error*/ - else if ((content_error <= MS_MEDIA_ERR_SOCKET_CONN) && (content_error >= MS_MEDIA_ERR_SOCKET_INTERNAL)) + else if (content_error == MS_MEDIA_ERR_IPC) return MEDIA_CONTENT_ERROR_NETWORK; /* MEDIA SERVER error*/ -- 2.7.4