From 16201cec344d619c7e1624cb83bd9722f82e4971 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 7 Aug 2014 15:25:32 +0200 Subject: [PATCH] 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 --- ext/hls/gsthlsdemux.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ext/hls/gsthlsdemux.c b/ext/hls/gsthlsdemux.c index 8345f58..c343fc5 100644 --- a/ext/hls/gsthlsdemux.c +++ b/ext/hls/gsthlsdemux.c @@ -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; -- 2.7.4