[v0.6.21] Disable webm media format 86/107986/2
authorGilbok Lee <gilbok.lee@samsung.com>
Mon, 2 Jan 2017 08:04:41 +0000 (17:04 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Wed, 4 Jan 2017 09:00:40 +0000 (18:00 +0900)
Change-Id: I214b9013662ddbcb6dc84dc93e9be7c2b8fb59fe

packaging/libmm-player.spec
src/mm_player_priv.c

index d2d2c92..242160d 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-player
 Summary:    Multimedia Framework Player Library
-Version:    0.6.20
+Version:    0.6.21
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index e94848c..e3e2eaf 100644 (file)
@@ -10270,7 +10270,9 @@ GstCaps *caps, gpointer data)
 
        if ((!MMPLAYER_IS_WFD_STREAMING(player)) &&
                (!MMPLAYER_IS_RTSP_STREAMING(player)) &&
-               (g_strrstr(player->type, "audio/x-raw-int"))) {
+               (g_strrstr(player->type, "audio/x-raw-int") ||
+               g_strrstr(player->type, "audio/webm") ||
+               g_strrstr(player->type, "video/webm"))) {
                LOGE("not support media format\n");
 
                if (player->msg_posted == FALSE) {
@@ -11792,7 +11794,14 @@ GstCaps * caps,  gpointer data)
                /* set it directly because not sent by TAG */
                if (g_strrstr(caps_str, "mobile-xmf"))
                        mm_attrs_set_string_by_name(player->attrs, "content_audio_codec", "mobile-xmf");
+               if (g_strrstr(caps_str, "audio/webm")) {
+                       LOGD("webm is not supported");
+                       ret = FALSE;
+               }
                MMPLAYER_FREEIF(caps_str);
+       } else if (g_str_has_prefix(mime, "video/webm")) {
+               LOGD("webm is not supported");
+               ret = FALSE;
        } else if (g_str_has_prefix(mime, "video") && !player->ini.video_playback_supported) {
                MMMessageParamType msg_param;
                memset(&msg_param, 0, sizeof(MMMessageParamType));