Fix misuse of the M_OPT_TYPE_INDIRECT flag, it has nothing to do

with the type of data used by the option.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17469 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
albeu 2006-01-23 12:15:22 +00:00
parent d7df4557b5
commit 97740de423
1 changed files with 2 additions and 2 deletions

View File

@ -822,7 +822,7 @@ m_option_type_t m_option_type_func = {
/////////////////// Print
static int parse_print(m_option_t* opt,char *name, char *param, void* dst, int src) {
if(opt->type->flags&M_OPT_TYPE_INDIRECT)
if(opt->type == CONF_TYPE_PRINT_INDIRECT)
mp_msg(MSGT_CFGPARSER, MSGL_INFO, "%s", *(char **) opt->p);
else
mp_msg(MSGT_CFGPARSER, MSGL_INFO, "%s", (char *) opt->p);
@ -849,7 +849,7 @@ m_option_type_t m_option_type_print_indirect = {
"Print",
"",
0,
M_OPT_TYPE_INDIRECT,
0,
parse_print,
NULL,
NULL,