mirror of
https://github.com/mpv-player/mpv
synced 2025-02-19 06:17:00 +00:00
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
This commit is contained in:
parent
36e5a58db2
commit
8e5d1b940a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user