[MPlayer-cvslog] CVS: main m_option.c,1.43,1.44
Alban Bedel CVS
syncmail at mplayerhq.hu
Mon Jan 23 13:15:24 CET 2006
CVS change done by Alban Bedel CVS
Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv16429
Modified Files:
m_option.c
Log Message:
Fix misuse of the M_OPT_TYPE_INDIRECT flag, it has nothing to do
with the type of data used by the option.
Index: m_option.c
===================================================================
RCS file: /cvsroot/mplayer/main/m_option.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- m_option.c 25 Oct 2005 17:28:10 -0000 1.43
+++ m_option.c 23 Jan 2006 12:15:22 -0000 1.44
@@ -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,
More information about the MPlayer-cvslog
mailing list