changeset 17468:41d8991c3632

Fix misuse of the M_OPT_TYPE_INDIRECT flag, it has nothing to do with the type of data used by the option.
author albeu
date Mon, 23 Jan 2006 12:15:22 +0000
parents d631b3c09c53
children 40b109500177
files m_option.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/m_option.c	Mon Jan 23 11:33:18 2006 +0000
+++ b/m_option.c	Mon Jan 23 12:15:22 2006 +0000
@@ -822,7 +822,7 @@
 /////////////////// 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 @@
   "Print",
   "",
   0,
-  M_OPT_TYPE_INDIRECT,
+  0,
   parse_print,
   NULL,
   NULL,