1
mirror of https://github.com/mpv-player/mpv synced 2024-07-31 16:29:58 +02:00

The -osdlevel switch for setting default OSD level (useful in your .config for example if you don't like watching OSD timer by default)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@642 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
lgb 2001-04-26 15:50:45 +00:00
parent a138cca8ac
commit ef509505f7
2 changed files with 4 additions and 1 deletions

View File

@ -20,6 +20,7 @@ extern int sdl_forcexv;
#endif
extern int vo_dbpp;
extern int osd_level;
struct config conf[]={
/* name, pointer, type, flags, min, max */
@ -30,6 +31,7 @@ struct config conf[]={
{"dsp", &dsp, CONF_TYPE_STRING, 0, 0, 0},
{"mixer", &mixer_device, CONF_TYPE_STRING, 0, 0, 0},
{"master", &mixer_usemaster, CONF_TYPE_FLAG, 0, 0, 1},
{"osdlevel", &osd_level, CONF_TYPE_INT, CONF_RANGE, 0, 2 },
#ifdef HAVE_LIBCSS
{"dvd", &dvd_device, CONF_TYPE_STRING, 0, 0, 0},
{"dvdkey", &dvdimportkey, CONF_TYPE_STRING, 0, 0, 0},

View File

@ -93,6 +93,8 @@ int verbose=0;
static subtitle* subtitles=NULL;
void find_sub(subtitle* subtitles,int key);
int osd_level=2;
//**************************************************************************//
// Config file
//**************************************************************************//
@ -1144,7 +1146,6 @@ double vout_time_usage=0;
double audio_time_usage=0;
int grab_frames=0;
char osd_text_buffer[64];
int osd_level=2;
int osd_visible=100;
int osd_function=OSD_PLAY;
int osd_last_pts=-303;