hlsdemux: Calculate the real bitrate and switch to the correct variant
authorYouness Alaoui <youness.alaoui@collabora.co.uk>
Tue, 8 May 2012 17:04:35 +0000 (13:04 -0400)
committerThibault Saunier <thibault.saunier@collabora.com>
Thu, 10 May 2012 18:06:44 +0000 (14:06 -0400)
commit705a52a1ac523913d2ad75f818a89af6650f99b6
tree118ad95d99913219e388c34831f2d38445486b85
parentbfd7a52c5d066923298d6d303066efda1cf8dd53
hlsdemux: Calculate the real bitrate and switch to the correct variant

We now calculate the actual bitrate using the download speed/size and
then switch directly to the variant that matches our bandwidth the
most.
It will also be able to handle any use case where some of the
variants are not available, and would skip them and go to the next
possible variant.

Conflicts:

gst/hls/gsthlsdemux.c
gst/hls/gsthlsdemux.c
gst/hls/gsthlsdemux.h