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;
}