mirror of
https://github.com/mpv-player/mpv
synced 2025-03-11 08:37:59 +00:00
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:
parent
303865cb81
commit
5cb40ec42f
20
mplayer.c
20
mplayer.c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user