Integrate IPC related errors 54/215054/1
authorMinje Ahn <minje.ahn@samsung.com>
Tue, 1 Oct 2019 07:36:56 +0000 (16:36 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Tue, 1 Oct 2019 07:36:56 +0000 (16:36 +0900)
Change-Id: I2dc932b079e4f06edea2be1091ae506d075d2598
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
src/media_content.c

index e507715..18bc11f 100644 (file)
@@ -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*/