Mercurial > mplayer.hg
comparison gui/cfg.c @ 34577:22887c794c02
In case of a GUI config error, exit MPlayer with error.
Additionally, add missing newline to error message and
adjust Win32 message level to MSGL_ERR.
author | ib |
---|---|
date | Thu, 09 Feb 2012 13:25:05 +0000 |
parents | 7596714e9e76 |
children | 948bec0f8df3 |
comparison
equal
deleted
inserted
replaced
34576:7596714e9e76 | 34577:22887c794c02 |
---|---|
259 } | 259 } |
260 | 260 |
261 m_config_register_options(gui_conf, gui_opts); | 261 m_config_register_options(gui_conf, gui_opts); |
262 | 262 |
263 if (!disable_gui_conf && (m_config_parse_config_file(gui_conf, cfg, 1) < 0)) { | 263 if (!disable_gui_conf && (m_config_parse_config_file(gui_conf, cfg, 1) < 0)) { |
264 gmp_msg(MSGT_GPLAYER, MSGL_ERR, MSGTR_ConfigFileError); | 264 gmp_msg(MSGT_GPLAYER, MSGL_ERR, MSGTR_ConfigFileError "\n"); |
265 // mplayer(MPLAYER_EXIT_GUI, 1, 0); | 265 mplayer(MPLAYER_EXIT_GUI, EXIT_ERROR, 0); |
266 } | 266 } |
267 | 267 |
268 free(cfg); | 268 free(cfg); |
269 | 269 |
270 // playlist | 270 // playlist |