diff --git a/cfg-mplayer.h b/cfg-mplayer.h index 0f14e3cafc..5b21dba2c4 100644 --- a/cfg-mplayer.h +++ b/cfg-mplayer.h @@ -10,6 +10,7 @@ struct config conf[]={ {"vo", &video_driver, CONF_TYPE_STRING, 0, 0, 0}, {"dsp", &dsp, CONF_TYPE_STRING, 0, 0, 0}, {"encode", &encode_name, CONF_TYPE_STRING, 0, 0, 0}, + {"font", &font_name, CONF_TYPE_STRING, 0, 0, 0}, {"bg", &play_in_bg, CONF_TYPE_FLAG, 0, 0, 1}, {"nobg", &play_in_bg, CONF_TYPE_FLAG, 0, 1, 0}, {"sb", &seek_to_byte, CONF_TYPE_INT, CONF_MIN, 0, 0}, diff --git a/mplayer.c b/mplayer.c index db9d8ab2cc..1de7a2dbf5 100644 --- a/mplayer.c +++ b/mplayer.c @@ -413,6 +413,7 @@ char *dsp="/dev/dsp"; int force_ni=0; char *conffile; int conffile_fd; +char *font_name=NULL; #include "cfg-mplayer.h" printf("%s",banner_text); @@ -458,6 +459,12 @@ if(video_driver && strcmp(video_driver,"help")==0){ exit(0); } +// check font + if(font_name){ + vo_font=read_font_desc(font_name); + if(!vo_font) printf("Can't load font: %s\n",font_name); + } + // check video_out driver name: if(!video_driver) video_out=video_out_drivers[0]; @@ -1134,6 +1141,7 @@ double video_time_usage=0; double vout_time_usage=0; double audio_time_usage=0; int grab_frames=0; +char osd_text_buffer[64]; #ifdef HAVE_LIRC lirc_mp_setup(); @@ -1912,6 +1920,11 @@ switch(has_video){ } // while(v_frame