[vlc-devel] [PATCH] Add an access-demux which can retrieve raw subtitles
Laurent Aimar
fenrir at via.ecp.fr
Wed Mar 24 14:16:43 CET 2010
On Wed, Mar 24, 2010, Rémi Denis-Courmont wrote:
> On Wednesday 24 March 2010 08:35:10 Pierre Ynard, you wrote:
> > > Hmm no, there is really nothing wrong with the cache.
> >
> > Apparently, stream_ReadLine() blocks unless there is enough data to be
> > put into the cache. Which means that I can never fetch the last line
> > of text that was just input. I have to wait until tens more lines of
> > text are input, which might happen minutes or hours later, or simply
> > never. So this is not a timestamp problem, this is a problem of fetching
> > data that should be available, but that the stream layer fails to fetch
> > because it's too greedy.
>
> If that's true, then it's a bug in the cache. A bug in the cache needs to be
> fixed, not worked around.
The stream_t layer will:
- prebuffer 128 bytes at the start.
- in normal access mode: prevent too small reads (ie will always read
something like 512 or 1024 (unsure) bytes at least).
- in 'block' mode: read one block at a time but will never return
with its internal buffer empty (so it waits for the next block).
--
fenrir
More information about the vlc-devel
mailing list