hlsdemux: Do not switch playlist on trick modes
authorThibault Saunier <thibault.saunier@collabora.com>
Thu, 7 Aug 2014 13:25:32 +0000 (15:25 +0200)
committerThibault Saunier <tsaunier@gnome.org>
Wed, 13 Aug 2014 15:49:12 +0000 (17:49 +0200)
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

index 8345f58..c343fc5 100644 (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;