From: Jiyong Min Date: Mon, 2 Jan 2017 06:37:37 +0000 (+0900) Subject: Replace webm category from video to ETC X-Git-Tag: accepted/tizen/3.0/wearable/20170102.095847 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Ftags%2Faccepted%2Ftizen%2F3.0%2Fwearable%2F20170102.095847;p=platform%2Fcore%2Fmultimedia%2Flibmedia-service.git Replace webm category from video to ETC - Due to license and playing issue, webm must not video type. But the mime type of webm is changed from application to video. Now, webm is video media type, so it is neccessary to except webm of video type. Change-Id: Ia6c0717b8b910c38ec02f1b7bb5c0e32a52ab37a Signed-off-by: jiyong.min --- diff --git a/packaging/libmedia-service.spec b/packaging/libmedia-service.spec index 58ff608..1192aaa 100644 --- a/packaging/libmedia-service.spec +++ b/packaging/libmedia-service.spec @@ -1,6 +1,6 @@ Name: libmedia-service Summary: Media information service library for multimedia applications -Version: 0.2.88 +Version: 0.2.89 Release: 0 Group: Multimedia/Libraries License: Apache-2.0 and public domain diff --git a/src/common/media-svc-util.c b/src/common/media-svc-util.c index 7474d9a..57a4e34 100755 --- a/src/common/media-svc-util.c +++ b/src/common/media-svc-util.c @@ -485,6 +485,12 @@ static int __media_svc_get_content_type_from_mime(const char *path, const char * /*even though error occued in mm_file_get_stream_info return MS_MEDIA_ERR_NONE. fail means invalid media content. */ } } + + /*webm mime type is "video/webm". but It has to be classified into MS_CATEGORY_ETC because video player can not play webm*/ + if (strncasecmp(mimetype, "video/webm", strlen("video/webm")) == 0) { + *category ^= MEDIA_SVC_CATEGORY_VIDEO; + *category |= MEDIA_SVC_CATEGORY_ETC; + } } return MS_MEDIA_ERR_NONE;