[MPlayer-dev-eng] [PATCH] First usable version of the new config system

Alban Bedel albeu at free.fr
Sat Oct 26 19:06:09 CEST 2002


Hi all,

I finnaly managed to get this first patch ready sooner as i expected :) This a rewrite
of the config stuff (the thing wich parse the cmd line and cfg files), it's more
codemetics that smthg else (ie it shouldn't change anything for the user). The targets
are : no more dependency on the playtree (for mencoder) and a modular design
to make it easy to add new option types.

This patch is first version (alpha if you want), so a few things are still missing, mostly
the -dvd, -vcd, etc won't work (it need a dark hack ): It may also brake some stuff
(like fullscreen with x11 based vo), I can't test all options anyway so pls report all
problems (except that -dvd, -vcd and -tv on don't work anymore as they did and
that fs and -fixed-vo  are broken in x11 vo).

To test it you have to add #define NEW_CONFIG in your config.h

On the code side, I tried to be backward compatible as much as possible. Some stuff
have been renamed. I know it's bad, etc but these names (config_t and m_config_t)
was too confusing and backward compatibility is provided. I also removed the includes
in cfgparser.h and playtree.h.

PS : This patch is only for comments, flame and testing purpose

	Albeu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: new_config.diff
Type: application/octet-stream
Size: 61045 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20021026/9208c7c3/attachment.obj>


More information about the MPlayer-dev-eng mailing list