Mercurial > mplayer.hg
diff m_option.c @ 8736:d3b750570887
pphelp
author | michael |
---|---|
date | Fri, 03 Jan 2003 12:40:10 +0000 |
parents | 7a7980b874f5 |
children | 01a713dcaf23 |
line wrap: on
line diff
--- a/m_option.c Fri Jan 03 12:36:14 2003 +0000 +++ b/m_option.c Fri Jan 03 12:40:10 2003 +0000 @@ -765,7 +765,11 @@ /////////////////// Print static int parse_print(m_option_t* opt,char *name, char *param, void* dst, int src) { - mp_msg(MSGT_CFGPARSER, MSGL_INFO, "%s", (char *) opt->p); + if(opt->type->flags&M_OPT_TYPE_INDIRECT) + mp_msg(MSGT_CFGPARSER, MSGL_INFO, "%s", *(char **) opt->p); + else + mp_msg(MSGT_CFGPARSER, MSGL_INFO, "%s", (char *) opt->p); + if(opt->priv == NULL) exit(1); // Call something else instead ?? return 1; @@ -784,6 +788,20 @@ NULL }; +m_option_type_t m_option_type_print_indirect = { + "Print", + "", + 0, + M_OPT_TYPE_INDIRECT, + parse_print, + NULL, + NULL, + NULL, + NULL, + NULL +}; + + /////////////////////// Subconfig #undef VAL #define VAL(x) (*(char***)(x))