mplayer.c: simplify code a bit, remove "main:" label

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32791 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
cboesch 2011-01-16 12:11:14 +00:00 committed by Uoti Urpala
parent 303865cb81
commit 5cb40ec42f
1 changed files with 7 additions and 13 deletions

View File

@ -4721,24 +4721,18 @@ if (select_subtitle(mpctx)) {
print_file_properties(mpctx, mpctx->filename);
if(!mpctx->sh_video) goto main; // audio-only
if(!reinit_video_chain(mpctx)) {
if(!mpctx->sh_video){
if(!mpctx->sh_audio) goto goto_next_file;
goto main; // exit_player(_("Fatal error"));
}
}
if(mpctx->sh_video->output_flags & VFCAP_SPU && vo_spudec)
if (mpctx->sh_video)
reinit_video_chain(mpctx);
if (mpctx->sh_video) {
if(mpctx->sh_video->output_flags & VFCAP_SPU && vo_spudec)
spudec_set_hw_spu(vo_spudec,mpctx->video_out);
#ifdef CONFIG_FREETYPE
force_load_font = 1;
force_load_font = 1;
#endif
} else if (!mpctx->sh_audio)
goto goto_next_file;
//================== MAIN: ==========================
main:
current_module="main";
if (opts->playing_msg) {