Mercurial > mplayer.hg
changeset 31963:e9d8a677874b
Cosmetics
author | reynaldo |
---|---|
date | Sat, 04 Sep 2010 19:24:34 +0000 |
parents | 52509abc73e6 |
children | d6c5ba89155e |
files | mplayer.c |
diffstat | 1 files changed, 12 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/mplayer.c Sat Sep 04 19:09:23 2010 +0000 +++ b/mplayer.c Sat Sep 04 19:24:34 2010 +0000 @@ -3223,14 +3223,16 @@ } edl_loadfile(); -if (edl_output_filename) { - if (edl_fd) fclose(edl_fd); - if ((edl_fd = fopen(edl_output_filename, "w")) == NULL) - { - mp_msg(MSGT_CPLAYER, MSGL_ERR, MSGTR_EdlCantOpenForWrite, - filename_recode(edl_output_filename)); + + if (edl_output_filename) { + if (edl_fd) + fclose(edl_fd); + if ((edl_fd = fopen(edl_output_filename, "w")) == NULL) + { + mp_msg(MSGT_CPLAYER, MSGL_ERR, MSGTR_EdlCantOpenForWrite, + filename_recode(edl_output_filename)); + } } -} //==================== Open VOB-Sub ============================ @@ -3994,13 +3996,14 @@ while( !brk_cmd && (cmd = mp_input_get_cmd(0,0,0)) != NULL) { brk_cmd = run_command(mpctx, cmd); if (cmd->id == MP_CMD_EDL_LOADFILE) { - if (edl_filename) free(edl_filename); + if (edl_filename) + free(edl_filename); edl_filename = strdup(cmd->args[0].v.s); if (edl_filename) edl_loadfile(); else mp_msg(MSGT_CPLAYER, MSGL_ERR, MSGTR_EdlOutOfMemFile, - cmd->args[0].v.s); + cmd->args[0].v.s); } mp_cmd_free(cmd); if (brk_cmd == 2)