[MPlayer-dev-eng] [PATCH] Clean up demuxers

Arpi arpi at thot.banki.hu
Fri Feb 22 00:39:48 CET 2002


Hi,

> > and set up this pointer to the right demux_fill_*
> > stuff at demux_open() ? the same thing can happen with seek functions.
> > and finally it will move to a libao2/libvo-like modular API.
> 
> For example, the Linux Virtual File-system is based on functions pointers. 
> If you want to provide a new filesystem you need to implement the read, seek
> and other needed functions and return a struct (file_operations) that 
> reference all the functions pointers. 
> 
> I think it's the good to way to look at this. We should have a struct that 
> every module return at initialisation time. This struct will contains the
> read, seek, demuxer_fill_* ... function pointers and the demuxer
> core will only have to call the function pointer. No more case addition
> to the switch statement when a new demuxer is needed.
> 
> When do we start? ;)
When do you commit? :)


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu



More information about the MPlayer-dev-eng mailing list