Mercurial > mplayer.hg
comparison gui/cfg.c @ 34592:ddf8f24a93a6
Show option save error in message box.
The user probably won't notice otherwise.
author | ib |
---|---|
date | Fri, 10 Feb 2012 14:13:14 +0000 |
parents | 73348cfa22e2 |
children | 83f7a2f8af3b |
comparison
equal
deleted
inserted
replaced
34591:73348cfa22e2 | 34592:ddf8f24a93a6 |
---|---|
363 if (file) { | 363 if (file) { |
364 for (i = 0; gui_opts[i].name; i++) { | 364 for (i = 0; gui_opts[i].name; i++) { |
365 char *val = m_option_print(&gui_opts[i], gui_opts[i].p); | 365 char *val = m_option_print(&gui_opts[i], gui_opts[i].p); |
366 | 366 |
367 if (val == (char *)-1) { | 367 if (val == (char *)-1) { |
368 mp_msg(MSGT_GPLAYER, MSGL_WARN, MSGTR_UnableToSaveOption, gui_opts[i].name); | 368 gmp_msg(MSGT_GPLAYER, MSGL_WARN, MSGTR_UnableToSaveOption, gui_opts[i].name); |
369 val = NULL; | 369 val = NULL; |
370 } | 370 } |
371 | 371 |
372 if (val) { | 372 if (val) { |
373 fprintf(file, "%s = \"%s\"\n", gui_opts[i].name, val); | 373 fprintf(file, "%s = \"%s\"\n", gui_opts[i].name, val); |