mirror of
https://github.com/mpv-player/mpv
synced 2024-11-03 03:19:24 +01:00
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. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24112 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
e833080245
commit
6a4478d677
@ -3537,8 +3537,6 @@ if(rel_seek_secs || abs_seek_pos){
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user