[vlc-devel] [PATCH] input/stream: do not unconditionally invalidate block on seek

Rémi Denis-Courmont remi at remlab.net
Mon Oct 24 10:33:15 CEST 2016


Le maanantaina 24. lokakuuta 2016, 2.13.11 EEST Filip Roséen a écrit :
> If a seek request happens to refer to a position within the already
> read block, simply update the block so that it refers to the desired
> data.
> 
> There is really no need for us to discard the block, only to ask the
> underlying stream to give us a new one (when we have the data we want
> already).

I don´t see the point. I have spent a lot of time untangling the caching from 
the generic byte stream reader, and this is just starting to bring it back in 
and duplicate functionality.

If you need to skip forward, call vlc_stream_Read(..., NULL, ...) in the 
demuxer or wherever else needed. That will work even if the stream is not 
readable.

-- 
Rémi Denis-Courmont
Nonsponsored VLC developer
http://www.remlab.net/CV.pdf



More information about the vlc-devel mailing list