[MPlayer-dev-eng] Re: [PATCH] Use stream to read text subs
Alban Bedel
albeu at free.fr
Thu Mar 16 15:44:31 CET 2006
On Wed, 15 Mar 2006 16:44:59 +0100
Alban Bedel <albeu at free.fr> wrote:
>
> Hi all,
>
> a small patch to move subreader.c from FILE to stream_t. It add a new
> function to the stream API: stream_read_line() which behave like
> fgets(). Then it just convert the f*() to stream_*() in subreader.c.
>
> The main advantage is that it allow reading from http, ftp, etc.
> I'm also working on some stream filter to allow (among other things)
> transparent decompression. So beeing able to read gzip subs is one
> step closer :)
>
> I didn't changed the function which build a list of subtitle files,
> so autodetection behaviour shouldn't change.
>
> Any comments, suggestions ? Some small testing would also be welcome
> :)
Commited with a few gcc 4.x fix as pointed out by Reynaldo.
Albeu
More information about the MPlayer-dev-eng
mailing list