[MPlayer-cvslog] r24112 - trunk/mplayer.c

uau subversion at mplayerhq.hu
Tue Aug 21 02:24:15 CEST 2007


Author: uau
Date: Tue Aug 21 02:24:14 2007
New Revision: 24112

Log:
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.


Modified:
   trunk/mplayer.c

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	(original)
+++ trunk/mplayer.c	Tue Aug 21 02:24:14 2007
@@ -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;



More information about the MPlayer-cvslog mailing list