[MPlayer-dev-eng] New playlist support

Alban Bedel albeu at free.fr
Tue Jan 8 14:36:42 CET 2002


On Tue, 8 Jan 2002 12:35:59 +0200 (CEST)
Arpi <arpi at thot.banki.hu> wrote:

> global options should be initialized once, and shouldn't change between
> files. file-specific options should kept in struct for each file.
> (and restored when playing the file again - loop)
	Global/specific options are in my plans using the flag entry. But I don't want to
	use a struct to keep the values because we will then need to extend it 
	each time a new option is added :·(. I prefer to use a key/value pair system 
	wich can function independently of the existing options.

> maybe, by moving default values to the config struct (cfg-*.h) your problem
> can be solved. just implement an init_options() or similar function, which
> go through the config struct and sets all values to its default.
> the default values in memory could be updated at config parsing...
	I thaught to this first, but we will need a function for the options handled
	by a function (CONF_TYPE_FUNC*) anyway. So I thaught it's better
	to have an optional reset function. Some option won't need it some will.
	Now a think we can mix the two ways (default value & function). It will 
	avoid writing too much functions that just reset a var or two.




More information about the MPlayer-dev-eng mailing list