Change-Id: I7c78f1bae5842d8ab49572f4d8060022f283c01b
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
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);