Mercurial > mplayer.hg
comparison mencoder.c @ 34172:5761a9a31bcb
Sanitize include option behaviour.
If the file could not be opened/read/processed, print a message and
quit instead of completely silently ignoring it.
author | reimar |
---|---|
date | Tue, 25 Oct 2011 20:45:09 +0000 |
parents | 552f50c89163 |
children | 70ac8d21e6ca |
comparison
equal
deleted
inserted
replaced
34171:cca4f430b0f4 | 34172:5761a9a31bcb |
---|---|
257 | 257 |
258 static void parse_cfgfiles( m_config_t* conf ) | 258 static void parse_cfgfiles( m_config_t* conf ) |
259 { | 259 { |
260 char *conffile; | 260 char *conffile; |
261 if (!disable_system_conf && | 261 if (!disable_system_conf && |
262 m_config_parse_config_file(conf, MPLAYER_CONFDIR "/mencoder.conf") < 0) | 262 m_config_parse_config_file(conf, MPLAYER_CONFDIR "/mencoder.conf", 1) < 0) |
263 mencoder_exit(1,MSGTR_ConfigFileError); | 263 mencoder_exit(1,MSGTR_ConfigFileError); |
264 | 264 |
265 if (!disable_user_conf) { | 265 if (!disable_user_conf) { |
266 if ((conffile = get_path("mencoder.conf")) == NULL) { | 266 if ((conffile = get_path("mencoder.conf")) == NULL) { |
267 mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_GetpathProblem); | 267 mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_GetpathProblem); |
268 } else { | 268 } else { |
269 if (m_config_parse_config_file(conf, conffile) < 0) | 269 if (m_config_parse_config_file(conf, conffile, 1) < 0) |
270 mencoder_exit(1,MSGTR_ConfigFileError); | 270 mencoder_exit(1,MSGTR_ConfigFileError); |
271 free(conffile); | 271 free(conffile); |
272 } | 272 } |
273 } | 273 } |
274 } | 274 } |