hlsdemux: Do not switch playlist on trick modes

Instead always use the low bandwith playlist making things go smoother
as the current heuristic is rather set for normal playback, and
currently it does not behave properly.

https://bugzilla.gnome.org/show_bug.cgi?id=734445
This commit is contained in:
Thibault Saunier 2014-08-07 15:25:32 +02:00 committed by Thibault Saunier
parent 123953d429
commit 16201cec34

View file

@ -1252,7 +1252,11 @@ gst_hls_demux_stream_loop (GstHLSDemux * demux)
}
/* try to switch to another bitrate if needed */
gst_hls_demux_switch_playlist (demux);
/* FIXME: Currently several issues have be found when letting bitrate adaptation
* happen using trick modes (such as 'All streams finished without buffers') and
* the adaptive algorithm does not properly behave. */
if (demux->segment.rate == 1.0)
gst_hls_demux_switch_playlist (demux);
demux->download_total_bytes = 0;
demux->download_total_time = 0;