Replace webm category from video to ETC 70/107970/1 accepted/tizen/3.0/common/20170102.143456 accepted/tizen/3.0/ivi/20170102.095904 accepted/tizen/3.0/mobile/20170102.095812 accepted/tizen/3.0/tv/20170102.095825 accepted/tizen/3.0/wearable/20170102.095847 submit/tizen_3.0/20170102.065102
authorJiyong Min <jiyong.min@samsung.com>
Mon, 2 Jan 2017 06:37:37 +0000 (15:37 +0900)
committerJiyong Min <jiyong.min@samsung.com>
Mon, 2 Jan 2017 06:42:54 +0000 (15:42 +0900)
 - 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 <jiyong.min@samsung.com>
packaging/libmedia-service.spec
src/common/media-svc-util.c

index 58ff608..1192aaa 100644 (file)
@@ -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
index 7474d9a..57a4e34 100755 (executable)
@@ -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;