[MPlayer-dev-eng] [PATCH] Use stream to read text subs

Alban Bedel albeu at free.fr
Wed Mar 15 16:44:59 CET 2006


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 :)

	Albeu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: subread.diff
Type: application/octet-stream
Size: 15339 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060315/787e072b/attachment.obj>


More information about the MPlayer-dev-eng mailing list