comparison m_option.c @ 34149:11d9ef2177ec

Improve option type CONF_TYPE_PRINT. Allow printing options that neither exit MPlayer nor need an "extra option" in order to work. This fixes that mplayer -gui file won't play, while mplayer -gui -v file for example does.
author ib
date Sat, 22 Oct 2011 11:00:31 +0000
parents cf2a4f4cac0e
children ab178e06077e
comparison
equal deleted inserted replaced
34148:61e3181426d8 34149:11d9ef2177ec
886 else 886 else
887 mp_msg(MSGT_CFGPARSER, MSGL_INFO, "%s", (char *) opt->p); 887 mp_msg(MSGT_CFGPARSER, MSGL_INFO, "%s", (char *) opt->p);
888 888
889 if(opt->priv == NULL) 889 if(opt->priv == NULL)
890 return M_OPT_EXIT; 890 return M_OPT_EXIT;
891 if(opt->priv == PRIV_NO_EXIT)
892 return 0;
891 return 1; 893 return 1;
892 } 894 }
893 895
894 const m_option_type_t m_option_type_print = { 896 const m_option_type_t m_option_type_print = {
895 "Print", 897 "Print",