diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-06-21 23:39:32 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-06-21 23:39:32 +0000 |
commit | 7c94cd567a2460c32297a5d60a0b626946fcd929 (patch) | |
tree | 6904c777cc8127285740361d76225185fe988ef7 | |
parent | b6a67e53780b1fdd8c5900bb99ae9a31f17d5e97 (diff) | |
download | mpv-7c94cd567a2460c32297a5d60a0b626946fcd929.tar.bz2 mpv-7c94cd567a2460c32297a5d60a0b626946fcd929.tar.xz |
backport PRINT_INDIRECT to old-config parser (new config fails on some 64bit systems - should be fixed) and some minor corrections
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10321 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | cfgparser.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cfgparser.c b/cfgparser.c index e9f71a4fa2..1872c203f9 100644 --- a/cfgparser.c +++ b/cfgparser.c @@ -72,6 +72,7 @@ m_config_save_option(m_config_t* config, config_t* conf,char* opt, char *param) switch(conf->type) { case CONF_TYPE_PRINT : + case CONF_TYPE_PRINT_INDIRECT : case CONF_TYPE_SUBCONFIG : return; default : @@ -761,6 +762,9 @@ static int config_read_option(m_config_t *config,config_t** conf_list, char *opt case CONF_TYPE_PRINT: mp_msg(MSGT_CFGPARSER, MSGL_INFO, "%s", (char *) conf[i].p); exit(1); + case CONF_TYPE_PRINT_INDIRECT: + mp_msg(MSGT_CFGPARSER, MSGL_INFO, "%s", *(char **) conf[i].p); + exit(1); case CONF_TYPE_POSITION: if (param == NULL) goto err_missing_param; @@ -1490,6 +1494,7 @@ static void m_config_print_option_list(char* prefix, config_t* opt_list) { type = "Function"; break; case CONF_TYPE_PRINT: + case CONF_TYPE_PRINT_INDIRECT: type = "Print"; break; case CONF_TYPE_STRING_LIST: |