make 'your system is too slow' appear only once

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11255 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
iive 2003-10-23 22:44:25 +00:00
parent c42aba576c
commit 39f8fbff6f
1 changed files with 1 additions and 1 deletions

View File

@ -2333,7 +2333,7 @@ if(time_frame>0.001 && !(vo_flags&256)){
static int drop_message=0;
float x;
AV_delay=(a_pts-delay-audio_delay)-v_pts;
if(AV_delay>0.5 && drop_frame_cnt>50+drop_message*250){
if(AV_delay>0.5 && drop_frame_cnt>50 && drop_message==0){
++drop_message;
mp_msg(MSGT_AVSYNC,MSGL_WARN,MSGTR_SystemTooSlow);
}