diff options
author | arpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-04-14 22:51:56 +0000 |
---|---|---|
committer | arpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-04-14 22:51:56 +0000 |
commit | 4eca33639f3d69767e15c92b35fc7387453ae126 (patch) | |
tree | 543c43598fcddbbd05949701452a231f93a92d9f /mplayer.c | |
parent | 7c123a0a413fdde0867e5d267900187101502ddd (diff) | |
download | mpv-4eca33639f3d69767e15c92b35fc7387453ae126.tar.bz2 mpv-4eca33639f3d69767e15c92b35fc7387453ae126.tar.xz |
print help before reading font+sub
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@426 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 47 |
1 files changed, 23 insertions, 24 deletions
@@ -452,24 +452,12 @@ if(video_driver && strcmp(video_driver,"help")==0){ exit(0); } -// check font - if(font_name){ - vo_font=read_font_desc(font_name,font_factor,verbose>1); - if(!vo_font) printf("Can't load font: %s\n",font_name); - } else { - // try default: - vo_font=read_font_desc(get_path("font/font.desc"),font_factor,verbose>1); - } - -// check .sub - if(sub_name){ - subtitles=sub_read_file(sub_name); - if(!subtitles) printf("Can't load subtitles: %s\n",font_name); - } else { - // try default: - subtitles=sub_read_file(get_path("default.sub")); +if(!filename){ + if(vcd_track) filename="/dev/cdrom"; + else { + printf("%s",help_text); exit(0); } - +} // check video_out driver name: if(!video_driver) @@ -486,19 +474,30 @@ if(video_driver && strcmp(video_driver,"help")==0){ return 0; } -if(!filename){ - if(vcd_track) filename="/dev/cdrom"; - else { - printf("%s",help_text); exit(0); - } -} - // check codec.conf if(!parse_codec_cfg(get_path("codecs.conf"))){ printf("(copy/link DOCS/codecs.conf to ~/.mplayer/codecs.conf)\n"); exit(1); } +// check font + if(font_name){ + vo_font=read_font_desc(font_name,font_factor,verbose>1); + if(!vo_font) printf("Can't load font: %s\n",font_name); + } else { + // try default: + vo_font=read_font_desc(get_path("font/font.desc"),font_factor,verbose>1); + } + +// check .sub + if(sub_name){ + subtitles=sub_read_file(sub_name); + if(!subtitles) printf("Can't load subtitles: %s\n",font_name); + } else { + // try default: + subtitles=sub_read_file(get_path("default.sub")); + } + if(vcd_track){ //============ Open VideoCD track ============== |