summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-08-28 20:52:02 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-08-28 20:52:02 +0000
commitfd44bbee3de65f95bdd9e5108b17277f1cac3d59 (patch)
tree4652fa878c4ee165fbea28d8d59abdcb3cfbabdc /mplayer.c
parent5e59ee334476b6fa1b557cb87d1dca8be24e02c3 (diff)
downloadmpv-fd44bbee3de65f95bdd9e5108b17277f1cac3d59.tar.bz2
mpv-fd44bbee3de65f95bdd9e5108b17277f1cac3d59.tar.xz
freetype 2.0/2.1+ support - disabled by default until bugs fixed
patch by Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7123 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c22
1 files changed, 19 insertions, 3 deletions
diff --git a/mplayer.c b/mplayer.c
index 2dfb9af1ef..e425f4f43d 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -668,9 +668,9 @@ if(!parse_codec_cfg(get_path("codecs.conf"))){
//------ load global data first ------
-
-// check font
#ifdef USE_OSD
+#ifndef HAVE_FREETYPE
+// check font
if(font_name){
vo_font=read_font_desc(font_name,font_factor,verbose>1);
if(!vo_font) mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_CantLoadFont,font_name);
@@ -680,8 +680,10 @@ if(!parse_codec_cfg(get_path("codecs.conf"))){
if(!vo_font)
vo_font=read_font_desc(DATADIR"/font/font.desc",font_factor,verbose>1);
}
+#else
+ init_freetype();
+#endif
#endif
-
vo_init_osd();
#ifdef HAVE_RTC
@@ -1324,6 +1326,10 @@ current_module="init_vo";
if(vo_flags & 0x08 && vo_spudec)
spudec_set_hw_spu(vo_spudec,video_out);
+#ifdef HAVE_FREETYPE
+ force_load_font = 1;
+#endif
+
//================== MAIN: ==========================
main:
if(!sh_video) osd_level = 0;
@@ -2774,6 +2780,12 @@ while(playtree_iter != NULL) {
if(use_gui || playtree_iter != NULL){
+#ifdef HAVE_FREETYPE
+ current_module="uninit_font";
+ if (vo_font) free_font_desc(vo_font);
+ vo_font = NULL;
+#endif
+
current_module="uninit_acodec";
if(sh_audio) uninit_audio(sh_audio);
sh_audio=NULL;
@@ -2805,6 +2817,10 @@ if(use_gui || playtree_iter != NULL){
goto play_next_file;
}
+#ifdef HAVE_FREETYPE
+done_freetype();
+#endif
+
exit_player(MSGTR_Exit_eof);
return 1;