summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-08-09 18:06:08 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-08-09 18:06:08 +0000
commit8e5d1b940a094de3db81ed8fe19fcb8d05212de7 (patch)
treeda731d9253d5f9a82c1f9572cba228d5916a8dba /mplayer.c
parent36e5a58db23338cc96ca1dd5577eef3f999e9c86 (diff)
downloadmpv-8e5d1b940a094de3db81ed8fe19fcb8d05212de7.tar.bz2
mpv-8e5d1b940a094de3db81ed8fe19fcb8d05212de7.tar.xz
Don't drop frames when paused, fixes not displaying the pause OSD icon
when paused, patch by Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>, approved by Attila. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12982 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c2
1 files changed, 1 insertions, 1 deletions
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;