changeset 641:d161307f447a

The -osdlevel switch for setting default OSD level (useful in your .config for example if you don't like watching OSD timer by default)
author lgb
date Thu, 26 Apr 2001 15:50:45 +0000
parents ef7249823af2
children ea9f904513a4
files cfg-mplayer.h mplayer.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cfg-mplayer.h	Thu Apr 26 01:57:31 2001 +0000
+++ b/cfg-mplayer.h	Thu Apr 26 15:50:45 2001 +0000
@@ -20,6 +20,7 @@
 #endif
 
 extern int vo_dbpp;
+extern int osd_level;
 
 struct config conf[]={
 	/* name, pointer, type, flags, min, max */
@@ -30,6 +31,7 @@
 	{"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},
--- a/mplayer.c	Thu Apr 26 01:57:31 2001 +0000
+++ b/mplayer.c	Thu Apr 26 15:50:45 2001 +0000
@@ -93,6 +93,8 @@
 static subtitle* subtitles=NULL;
 void find_sub(subtitle* subtitles,int key);
 
+int osd_level=2;
+
 //**************************************************************************//
 //             Config file
 //**************************************************************************//
@@ -1144,7 +1146,6 @@
 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;