From 97740de4238484530e8e61a0bf7eb3c31acad1f3 Mon Sep 17 00:00:00 2001 From: albeu Date: Mon, 23 Jan 2006 12:15:22 +0000 Subject: [PATCH] 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 --- m_option.c | 4 ++-- 1 file 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,