[vlc-devel] [PATCH] httplive.c: remove an attribute that is never used
Jean-Paul Saman
jpsaman at gmail.com
Mon Oct 31 10:13:59 CET 2011
On Mon, Oct 31, 2011 at 1:42 AM, Jean-Baptiste Kempf <jb at videolan.org> wrote:
> On Thu, Oct 27, 2011 at 06:00:32PM +0200, F. Yhuel wrote :
>> modules/stream_filter/httplive.c | 2 --
>
> Patch is fine.
> But the question is: "will it be useful in the future"? Jean-Paul? Luc?
In the function Download() (modules/stream_filter/httplive.c) the
download time of current segment is measured. From that measurement
and the byte size of the segment an approximate bandwidth in bits per
second is calculated. The current 'blunt' algorithm takes only this
number in account to determine if it should switch to a higher or
lower bandwidth stream. In other words the algorithm reacts directly
on temporarily bandwidth changes.
A more average (or weighted average) could also be used, but then you
need to keep track of the bandwidth measured per segment downloaded.
This is what the segment->bandwidth variable was used for. Needless to
say I did not get around to try and find a more averaging approach for
this algorithm.
Kind regards,
Jean-Paul Saman.
> Best Regards,
>
> --
> Jean-Baptiste Kempf
> http://www.jbkempf.com/ - +33 672 704 734
> Sent from my Electronic Device
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>
More information about the vlc-devel
mailing list