From 8e5d1b940a094de3db81ed8fe19fcb8d05212de7 Mon Sep 17 00:00:00 2001 From: diego Date: Mon, 9 Aug 2004 18:06:08 +0000 Subject: Don't drop frames when paused, fixes not displaying the pause OSD icon when paused, patch by Mikulas Patocka , approved by Attila. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12982 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mplayer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mplayer.c b/mplayer.c index c28933608a..6cb451b7c9 100644 --- a/mplayer.c +++ b/mplayer.c @@ -2100,7 +2100,7 @@ if(!sh_video) { 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; -- cgit v1.2.3