Fix wrong error type 34/280434/1 accepted/tizen/unified/20220831.023501 submit/tizen/20220830.232907
authorminje.ahn <minje.ahn@samsung.com>
Tue, 30 Aug 2022 05:13:32 +0000 (14:13 +0900)
committerminje.ahn <minje.ahn@samsung.com>
Tue, 30 Aug 2022 05:13:32 +0000 (14:13 +0900)
Change-Id: I6081b05fef234546aabfc6db011ea6a7e403c831
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
src/common/media-svc.c

index a652e4c..59fee83 100755 (executable)
@@ -761,13 +761,13 @@ int media_svc_create_thumbnail(const char *file_path, int media_type, uid_t uid,
 
        // 1. Check media type
        if (media_type != MS_MEDIA_IMAGE && media_type != MS_MEDIA_VIDEO)
-               return MS_MEDIA_ERR_UNSUPPORTED_CONTENT;
+               return MS_MEDIA_ERR_THUMB_UNSUPPORTED;
 
        // 2. try to create thumbnail
        ret = _media_svc_create_thumbnail(file_path, thumb_path, media_type, uid);
        if (ret != MS_MEDIA_ERR_NONE) {
                media_svc_error("Failed to create thumbnail [%d]", ret);
-               if (ret == MS_MEDIA_ERR_UNSUPPORTED_CONTENT)
+               if (ret == MS_MEDIA_ERR_THUMB_UNSUPPORTED)
                        return ret;
        }