Mercurial > mplayer.hg
comparison mplayer.c @ 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 | 9f234010c4be |
comparison
equal
deleted
inserted
replaced
24091:e7df91814c0f | 24092:32624daed9b6 |
---|---|
3535 // Set OSD: | 3535 // Set OSD: |
3536 if(!loop_seek){ | 3536 if(!loop_seek){ |
3537 if( !edl_decision ) | 3537 if( !edl_decision ) |
3538 set_osd_bar(0,"Position",0,100,demuxer_get_percent_pos(mpctx->demuxer)); | 3538 set_osd_bar(0,"Position",0,100,demuxer_get_percent_pos(mpctx->demuxer)); |
3539 } | 3539 } |
3540 // osd_function has been set (or not) by the code triggering the seek | |
3541 osd_visible=(GetTimerMS() + 1000) | 1; // to revert to PLAY pointer after 1 sec | |
3542 } | 3540 } |
3543 | 3541 |
3544 rel_seek_secs=0; | 3542 rel_seek_secs=0; |
3545 abs_seek_pos=0; | 3543 abs_seek_pos=0; |
3546 loop_seek=0; | 3544 loop_seek=0; |