# HG changeset patch # User ib # Date 1328793905 0 # Node ID 22887c794c0271c0ae5d11795ee753bd3b99bc30 # Parent 7596714e9e76ceb0ed84d86eb245995990dd2402 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. diff -r 7596714e9e76 -r 22887c794c02 gui/cfg.c --- a/gui/cfg.c Thu Feb 09 12:52:09 2012 +0000 +++ b/gui/cfg.c Thu Feb 09 13:25:05 2012 +0000 @@ -261,8 +261,8 @@ m_config_register_options(gui_conf, gui_opts); if (!disable_gui_conf && (m_config_parse_config_file(gui_conf, cfg, 1) < 0)) { - gmp_msg(MSGT_GPLAYER, MSGL_ERR, MSGTR_ConfigFileError); -// mplayer(MPLAYER_EXIT_GUI, 1, 0); + gmp_msg(MSGT_GPLAYER, MSGL_ERR, MSGTR_ConfigFileError "\n"); + mplayer(MPLAYER_EXIT_GUI, EXIT_ERROR, 0); } free(cfg); diff -r 7596714e9e76 -r 22887c794c02 gui/win32/wincfg.c --- a/gui/win32/wincfg.c Thu Feb 09 12:52:09 2012 +0000 +++ b/gui/win32/wincfg.c Thu Feb 09 13:25:05 2012 +0000 @@ -106,7 +106,7 @@ gui_conf = m_config_new(); m_config_register_options(gui_conf, gui_opts); if (m_config_parse_config_file(gui_conf, cfg, 1) < 0) - mp_msg(MSGT_GPLAYER, MSGL_FATAL, MSGTR_ConfigFileError); + mp_msg(MSGT_GPLAYER, MSGL_ERR, MSGTR_ConfigFileError "\n"); free(cfg); }