[MPlayer-dev-eng] [PATCH] fix displaying of pause icon

Mikulas Patocka mikulas at artax.karlin.mff.cuni.cz
Mon Aug 2 16:57:57 CEST 2004


Hi

This patch fixes displaying of pause icon. When frame dropping is enabled,
the computer is slow (so that it drops frames) and user presses pause, the
screen sometimes doesn't display the pause icon and contains playback icon
while paused --- because the last frame with the pause icon was dropped.
The patch is simple --- do not drop the last frame before pause, that will
display pause icon.

Mikulas
-------------- next part --------------
--- mplayer.c_	Mon Aug  2 02:44:02 2004
+++ mplayer.c	Mon Aug  2 02:44:04 2004
@@ -2089,7 +2089,7 @@
 	    float d=delay-sh_audio->delay;
 	    // we should avoid dropping to many frames in sequence unless we
 	    // are too late. and we allow 100ms A-V delay here:
-	    if(d<-dropped_frames*frame_time-0.100){
+	    if(d<-dropped_frames*frame_time-0.100 && osd_function != OSD_PAUSE){
 		drop_frame=frame_dropping;
 		++drop_frame_cnt;
 		++dropped_frames;


More information about the MPlayer-dev-eng mailing list