[vlc-devel] [PATCH] prefetch: remove read size, always request maximum
Thomas Guillem
thomas at gllm.fr
Fri Feb 7 11:15:48 CET 2020
On Thu, Feb 6, 2020, at 18:04, Rémi Denis-Courmont wrote:
> Le torstaina 6. helmikuuta 2020, 17.19.30 EET Thomas Guillem a écrit :
> > If the demuxer is reading for playback, then
> > the cache (prefetch) should always read the maximum. If the demuxer is
> > reading for probing, then the cache should read only what is requested (or
> > cache a little like cache_read).
>
> This will wreck buffering at the most sensitive time and reintroduce the old
> early packet loss and stutter problems.
OK.
If I understand correctly, we could improve libsmb2 to support pipelining.
That is:
- Add a new function that will setup the length of the read request to: size - offset
- Add a new function that will just get any data available. This one don't have to be asynchronous since socket are non blocking, it just get whatever data is available on the socket.
>
> --
> Rémi Denis-Courmont
> http://www.remlab.net/
>
>
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list