Mercurial > mplayer.hg
comparison m_option.c @ 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 | 3898e1089a29 |
children | 21123e349463 |
comparison
equal
deleted
inserted
replaced
17467:d631b3c09c53 | 17468:41d8991c3632 |
---|---|
820 }; | 820 }; |
821 | 821 |
822 /////////////////// Print | 822 /////////////////// Print |
823 | 823 |
824 static int parse_print(m_option_t* opt,char *name, char *param, void* dst, int src) { | 824 static int parse_print(m_option_t* opt,char *name, char *param, void* dst, int src) { |
825 if(opt->type->flags&M_OPT_TYPE_INDIRECT) | 825 if(opt->type == CONF_TYPE_PRINT_INDIRECT) |
826 mp_msg(MSGT_CFGPARSER, MSGL_INFO, "%s", *(char **) opt->p); | 826 mp_msg(MSGT_CFGPARSER, MSGL_INFO, "%s", *(char **) opt->p); |
827 else | 827 else |
828 mp_msg(MSGT_CFGPARSER, MSGL_INFO, "%s", (char *) opt->p); | 828 mp_msg(MSGT_CFGPARSER, MSGL_INFO, "%s", (char *) opt->p); |
829 | 829 |
830 if(opt->priv == NULL) | 830 if(opt->priv == NULL) |
847 | 847 |
848 m_option_type_t m_option_type_print_indirect = { | 848 m_option_type_t m_option_type_print_indirect = { |
849 "Print", | 849 "Print", |
850 "", | 850 "", |
851 0, | 851 0, |
852 M_OPT_TYPE_INDIRECT, | 852 0, |
853 parse_print, | 853 parse_print, |
854 NULL, | 854 NULL, |
855 NULL, | 855 NULL, |
856 NULL, | 856 NULL, |
857 NULL, | 857 NULL, |