Integrate IPC related errors 53/215053/1
authorMinje Ahn <minje.ahn@samsung.com>
Tue, 1 Oct 2019 07:36:42 +0000 (16:36 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Tue, 1 Oct 2019 07:36:42 +0000 (16:36 +0900)
Change-Id: I78ee086e7cbfa34842f79e9c2c89bd712a94d18a
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
src/thumbnail_util.c

index 059aad8..85ef68a 100644 (file)
@@ -60,15 +60,14 @@ int __thumbnail_util_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 THUMBNAIL_UTIL_ERROR_INVALID_PARAMETER;
 
        else if (content_error == MS_MEDIA_ERR_OUT_OF_MEMORY)
                return THUMBNAIL_UTIL_ERROR_OUT_OF_MEMORY;
 
        /* 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 THUMBNAIL_UTIL_ERROR_INVALID_OPERATION;
 
        /* MEDIA SERVER error*/