[MPlayer-dev-eng] [PATCH] list_options valid for MEncoder

Diego Biurrun diego at biurrun.de
Mon Jan 9 15:51:12 CET 2006


On Mon, Jan 09, 2006 at 09:02:59AM +0100, Danny - liste wrote:
> Working on a profile support for MEncoder I find useful have the 
> -list-options avaible also for MEncoder and not only for MPlayer and I 
> made this little patch.
> 
> --- orig/parser-mecmd.c	2006-01-01 02:19:25.000000000 +0100
> +++ main/parser-mecmd.c	2006-01-08 20:09:35.902161608 +0100
> @@ -85,6 +85,12 @@
>  	/* remove trailing '-' */
>  	opt++;
>  	mp_msg(MSGT_CFGPARSER, MSGL_DBG3, "this_opt = option: %s\n", opt);
> +
> +        if(strcasecmp(opt,"list-options") == 0) {
> +	  m_config_print_option_list(config);
> +         exit(1);
> +        } else {

Hmm, this just duplicates the code from parser-mpcmd.c.  Isn't there a
cleaner solution?

Diego




More information about the MPlayer-dev-eng mailing list