Mercurial > mplayer.hg
changeset 24092:32624daed9b6
Remove unnecessary OSD visibility code
Don't set osd_visible directly in seek code. It's usually set to the
same value by set_osd_bar() already. In the cases where set_osd_bar()
is not called or doesn't set it (seek is triggered by EDL or loop, or
there is no video output) it seems to make no difference.
This fixes a minor bug: if you set OSD level to disabled while the
progress bar was visible then doing seeks before it disappeared would
keep it visible but not change its value.
author | uau |
---|---|
date | Tue, 21 Aug 2007 00:24:14 +0000 |
parents | e7df91814c0f |
children | e0b1c50aa9bd |
files | mplayer.c |
diffstat | 1 files changed, 0 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mplayer.c Tue Aug 21 00:24:13 2007 +0000 +++ b/mplayer.c Tue Aug 21 00:24:14 2007 +0000 @@ -3537,8 +3537,6 @@ if( !edl_decision ) set_osd_bar(0,"Position",0,100,demuxer_get_percent_pos(mpctx->demuxer)); } - // osd_function has been set (or not) by the code triggering the seek - osd_visible=(GetTimerMS() + 1000) | 1; // to revert to PLAY pointer after 1 sec } rel_seek_secs=0;