[0.6.252] support stream switch in case of hls and dash 08/256408/2
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 05:27:20 +0000 (14:27 +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 28a641e..8658359 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-player
 Summary:    Multimedia Framework Player Library
-Version:    0.6.251
+Version:    0.6.252
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index 2bbe192..77743ac 100644 (file)
@@ -6934,8 +6934,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");
        }