summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-06-30 10:11:50 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-06-30 10:11:50 +0000
commit1cbd08cdebeac0f69fc23f49b17b3935199ff799 (patch)
tree81dbf6ce83c0a89b7421d8d9b17320f771079b6e /mplayer.c
parent98f824366fd7752240e9ae391d83bc6dce824ed4 (diff)
downloadmpv-1cbd08cdebeac0f69fc23f49b17b3935199ff799.tar.bz2
mpv-1cbd08cdebeac0f69fc23f49b17b3935199ff799.tar.xz
simplify osd-status display, and allow e.g. osd -2 to get the old behaviour
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15864 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/mplayer.c b/mplayer.c
index 0496527c26..ba30719cc5 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -2921,7 +2921,7 @@ if (stream->type==STREAMTYPE_DVDNAV && dvd_nav_still)
osd_level= v > MAX_OSD_LEVEL ? MAX_OSD_LEVEL : v;
/* Show OSD state when disabled, but not when an explicit
argument is given to the osd command, i.e. in slave mode. */
- if (v < 0 && osd_level <= 1)
+ if (v == -1 && osd_level <= 1)
osd_show_status = 9;
}
#endif
@@ -4132,11 +4132,17 @@ if ((user_muted | edl_muted) != mixer.muted) mixer_mute(&mixer);
vo_osd_changed(OSDTYPE_OSD);
}
} else {
- if(vo_osd_text && osd_show_status <= 0) {
+ if(vo_osd_text) {
vo_osd_text=NULL;
vo_osd_changed(OSDTYPE_OSD);
}
}
+ if (osd_level <= 1 && osd_show_status > 0 && sh_video) {
+ vo_osd_text = osd_text_buffer;
+ snprintf(vo_osd_text, 63, "OSD: %sabled", osd_level ? "en" : "dis");
+ vo_osd_changed(OSDTYPE_OSD);
+ osd_show_status--;
+ }
// for(i=1;i<=11;i++) osd_text_buffer[10+i]=i;osd_text_buffer[10+i]=0;
// vo_osd_text=osd_text_buffer;
#endif