summaryrefslogtreecommitdiffstats
path: root/m_option.c
diff options
context:
space:
mode:
authoralbeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-01-23 12:15:22 +0000
committeralbeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-01-23 12:15:22 +0000
commit97740de4238484530e8e61a0bf7eb3c31acad1f3 (patch)
treeab3787e7dc405f0cb5394b2c919fa48a1b2a320b /m_option.c
parentd7df4557b5823e8c555371b4b43aed36796d538a (diff)
downloadmpv-97740de4238484530e8e61a0bf7eb3c31acad1f3.tar.bz2
mpv-97740de4238484530e8e61a0bf7eb3c31acad1f3.tar.xz
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
Diffstat (limited to 'm_option.c')
-rw-r--r--m_option.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/m_option.c b/m_option.c
index 3601e2d4f0..5222b26841 100644
--- a/m_option.c
+++ b/m_option.c
@@ -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,