Mercurial > mplayer.hg
diff mplayer.c @ 17109:327be31a101d
Fix EDL to be per file, allow -edlout and -edl together as there is really
no reason not to.
author | ods15 |
---|---|
date | Tue, 06 Dec 2005 08:52:18 +0000 |
parents | 05af35012e4f |
children | 637a2f4ff216 |
line wrap: on
line diff
--- a/mplayer.c Tue Dec 06 08:47:32 2005 +0000 +++ b/mplayer.c Tue Dec 06 08:52:18 2005 +0000 @@ -1526,26 +1526,6 @@ if(opt_exit) exit_player(NULL); -#ifdef USE_EDL -if (edl_check_mode() == EDL_ERROR && edl_filename) -{ - mp_msg(MSGT_CPLAYER, MSGL_ERR, MSGTR_EdlCantUseBothModes); - exit_player(NULL); -} else if (edl_filename) -{ - if (edl_records) free_edl(edl_records); - next_edl_record = edl_records = edl_parse_file(); -} else if (edl_output_filename) -{ - if ((edl_fd = fopen(edl_output_filename, "w")) == NULL) - { - mp_msg(MSGT_CPLAYER, MSGL_ERR, MSGTR_EdlCantOpenForWrite, - edl_output_filename); - exit_player(NULL); - } -} -#endif - if (player_idle_mode && use_gui) { mp_msg(MSGT_CPLAYER, MSGL_FATAL, MSGTR_NoIdleAndGui); exit_player_with_rc(NULL, 1); @@ -1828,6 +1808,21 @@ if(filename) mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_Playing, filename); +#ifdef USE_EDL +if (edl_filename) { + if (edl_records) free_edl(edl_records); + next_edl_record = edl_records = edl_parse_file(); +} +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, + edl_output_filename); + } +} +#endif + //==================== Open VOB-Sub ============================ current_module="vobsub";