[0.6.67] In case of DASH, set adaptive_buffer bytes/time property in decodebin 74/148274/3
authorGilbok Lee <gilbok.lee@samsung.com>
Thu, 7 Sep 2017 08:43:44 +0000 (17:43 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Thu, 7 Sep 2017 08:51:35 +0000 (17:51 +0900)
Change-Id: I9fa86caf842141e8b29a135a0cf5e2bb9930dfa4

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

index 7d4ac2d..0370e5b 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-player
 Summary:    Multimedia Framework Player Library
-Version:    0.6.66
+Version:    0.6.67
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index 69a168d..e3e0d49 100644 (file)
@@ -10179,15 +10179,15 @@ __mmplayer_try_to_plug_decodebin(mm_player_t* player, GstPad *srcpad, const GstC
        mainbin[MMPLAYER_M_AUTOPLUG].gst = decodebin;
 
        /* set decodebin property about buffer in streaming playback. *
-        * in case of hls, it does not need to have big buffer        *
+        * in case of HLS/DASH, it does not need to have big buffer        *
         * because it is kind of adaptive streaming.                  */
-       if (((!MMPLAYER_IS_HTTP_PD(player)) &&
-          (MMPLAYER_IS_HTTP_STREAMING(player))) || MMPLAYER_IS_DASH_STREAMING(player)) {
+       if (!MMPLAYER_IS_HTTP_PD(player) && MMPLAYER_IS_HTTP_STREAMING(player)) {
                guint max_size_bytes = MAX_DECODEBIN_BUFFER_BYTES;
                guint64 max_size_time = MAX_DECODEBIN_BUFFER_TIME;
                init_buffering_time = (init_buffering_time != 0) ? (init_buffering_time) : (player->ini.http_buffering_time);
 
-               if (MMPLAYER_IS_HTTP_LIVE_STREAMING(player)) {
+               if (MMPLAYER_IS_HTTP_LIVE_STREAMING(player)
+                       || MMPLAYER_IS_DASH_STREAMING(player)) {
                        max_size_bytes = MAX_DECODEBIN_ADAPTIVE_BUFFER_BYTES;
                        max_size_time = MAX_DECODEBIN_ADAPTIVE_BUFFER_TIME;
                }