summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-08-25 19:35:13 +0300
committerSebastian Dröge <sebastian@centricular.com>2016-08-25 19:52:37 +0300
commit4f6ae1f48c2a139faf07958b9e2232da8dde1b83 (patch)
treece18fe51672422c11fd4a578cd4b02223a3e8567 /gst-libs
parent2702d98d6bfb12d96ffcfc7521e575dbbbf235a5 (diff)
downloadgstreamer-plugins-bad-4f6ae1f48c2a139faf07958b9e2232da8dde1b83.tar.gz
adaptivedemux: Enable bitrate selection for trick mode streaming again
And scale the bitrate with the absolute rate (if it's bigger than 1.0) to get to the real bitrate due to faster playback. This allowed in my tests to play a stream with 10x speed without buffering as the lowest bitrate is chosen, instead of staying/selecting the highest bitrate and then buffering all the time. It was previously disabled for not very well specified reasons, which seem to be not valid anymore nowadays.
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/adaptivedemux/gstadaptivedemux.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c
index 536d51214..e51f6ddde 100644
--- a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c
+++ b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c
@@ -3710,12 +3710,6 @@ gst_adaptive_demux_stream_select_bitrate (GstAdaptiveDemux *
{
GstAdaptiveDemuxClass *klass = GST_ADAPTIVE_DEMUX_GET_CLASS (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)
- return FALSE;
-
if (klass->stream_select_bitrate)
return klass->stream_select_bitrate (stream, bitrate);
return FALSE;