Fix svace issue (WGID:374206) 75/209675/2 accepted/tizen/unified/20190710.103443 submit/tizen/20190710.054234
authorMinje Ahn <minje.ahn@samsung.com>
Wed, 10 Jul 2019 04:01:21 +0000 (13:01 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Wed, 10 Jul 2019 05:22:09 +0000 (14:22 +0900)
Change-Id: I7c78f1bae5842d8ab49572f4d8060022f283c01b
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
src/common/media-svc-util.c

index 25ee108..aee15e0 100755 (executable)
@@ -879,10 +879,6 @@ int _media_svc_set_media_info(media_svc_content_info_s *content_info, const char
 
        ret = __media_svc_get_media_type(path, mime_type, &media_type);
        media_svc_retv_del_if(ret != MS_MEDIA_ERR_NONE, ret, content_info);
-       if ((media_type < MEDIA_SVC_MEDIA_TYPE_IMAGE) || (media_type > MEDIA_SVC_MEDIA_TYPE_OTHER)) {
-               media_svc_error("invalid media_type condition[%d]", media_type);
-               return MS_MEDIA_ERR_INVALID_PARAMETER;
-       }
 
        content_info->mime_type = g_strdup(mime_type);
        media_svc_retv_del_if(content_info->mime_type == NULL, MS_MEDIA_ERR_INTERNAL, content_info);