From 6a4478d677feed891ad36f17c718e010b944bd0c Mon Sep 17 00:00:00 2001 From: uau Date: Tue, 21 Aug 2007 00:24:14 +0000 Subject: 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 --- mplayer.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mplayer.c b/mplayer.c index c172eb5fb4..1acbd8c4af 100644 --- a/mplayer.c +++ b/mplayer.c @@ -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; -- cgit v1.2.3