Modify _content_error_capi 05/215405/2 accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix accepted/tizen/5.5/unified/20191031.025611 accepted/tizen/5.5/unified/mobile/hotfix/20201027.064004 accepted/tizen/unified/20191011.015335 accepted/tizen/unified/20191014.062513 submit/tizen/20191008.062147 submit/tizen/20191010.061714 submit/tizen_5.5/20191031.000002 submit/tizen_5.5_mobile_hotfix/20201026.185102 tizen_5.5.m2_release
authorMinje Ahn <minje.ahn@samsung.com>
Tue, 8 Oct 2019 02:11:51 +0000 (11:11 +0900)
committerhj kim <backto.kim@samsung.com>
Tue, 8 Oct 2019 06:29:59 +0000 (06:29 +0000)
Fix for deleting some media-server error types.

Change-Id: I67f35f9f8e7dc968eb225853cf5c83468b27890b
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
src/media_content.c

index c0bd0b7..71d4b30 100644 (file)
@@ -156,7 +156,7 @@ int _content_error_capi(int content_error)
        else if (content_error == MS_MEDIA_ERR_DB_BUSY_FAIL)
                return MEDIA_CONTENT_ERROR_DB_BUSY;
 
-       else if ((content_error <= MS_MEDIA_ERR_DB_CONNECT_FAIL) && (content_error >= MS_MEDIA_ERR_DB_INTERNAL))
+       else if ((content_error <= MS_MEDIA_ERR_DB_CONSTRAINT_FAIL) && (content_error >= MS_MEDIA_ERR_DB_INTERNAL))
                return MEDIA_CONTENT_ERROR_DB_FAILED;
 
        /* IPC operation error*/