[0.6.251] support stream switch in case of hls and dash 15/256415/1 accepted/tizen/6.0/unified/20210416.122328 submit/tizen_6.0/20210414.003927
authorEunhye Choi <eunhae1.choi@samsung.com>
Fri, 2 Apr 2021 05:21:12 +0000 (14:21 +0900)
committerEunhye Choi <eunhae1.choi@samsung.com>
Fri, 2 Apr 2021 06:25:39 +0000 (15:25 +0900)
- if new stream is detected during adaptive streaming playback,
  autoplug-continue signal could be emitted.
  The cb should return TRUE to support stream switch.

Change-Id: Ie9d9288ef9b6f41cb255783890cffc7aa18495c8

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

index 86b01f3ffaf6717c1b013a1f9bc180ed6394d3df..28a641e5d9fb2b2c6eee6e016598f10760ea857d 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-player
 Summary:    Multimedia Framework Player Library
-Version:    0.6.250
+Version:    0.6.251
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index 5722debe62869c4e78b64e1318b963beca3c4d5f..fbe4cb7486c08bef24ba29f10814ff811c93b763 100644 (file)
@@ -6930,8 +6930,13 @@ _mmplayer_gst_decode_autoplug_continue(GstElement *bin, GstPad *pad,
 
                MMPLAYER_FREEIF(caps_str);
        } else if (g_str_has_prefix(mime, "video") && player->videodec_linked) {
-               LOGD("already video linked");
-               ret = FALSE;
+               if((MMPLAYER_IS_HTTP_LIVE_STREAMING(player)) || (MMPLAYER_IS_DASH_STREAMING(player))) {
+                       LOGD("video is already linked, allow the stream switch");
+                       ret = TRUE;
+               } else {
+                       LOGD("video is already linked");
+                       ret = FALSE;
+               }
        } else {
                LOGD("found new stream");
        }