diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-05-23 21:58:29 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-05-23 21:58:29 +0000 |
commit | 79794b41c3250c54f1f180599a9b5fdf960bf1a4 (patch) | |
tree | 2533d81af72ec2a03efbfcdb103ecb60b4e09828 /mplayer.c | |
parent | c5e56e6b0a6001f647398d07142475f946ee64bc (diff) | |
download | mpv-79794b41c3250c54f1f180599a9b5fdf960bf1a4.tar.bz2 mpv-79794b41c3250c54f1f180599a9b5fdf960bf1a4.tar.xz |
- put back SystemTooSlow message
- more tips for tooslow (ni vs cache) and buffer overflow (-ni)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6174 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1639,13 +1639,8 @@ if(!sh_video) { // printf ("audio slp req: %.3f TF: %.3f delta: %.3f (v: %.3f a: %.3f) | ", i, time_frame, // i - time_frame, sh_video->timer, sh_audio->timer - (float)((float)delay / (float)sh_audio->o_bps)); if(SH_AV_delay<-2*frame_time){ - static int drop_message=0; drop_frame=frame_dropping; // tricky! ++drop_frame_cnt; - if(drop_frame_cnt>50 && AV_delay>0.5 && !drop_message){ - drop_message=1; - mp_msg(MSGT_AVSYNC,MSGL_WARN,MSGTR_SystemTooSlow); - } mp_msg(MSGT_AVSYNC,MSGL_INFO,"A-V SYNC: FRAMEDROP (SH_AV_delay=%.3f)!\n", SH_AV_delay); mp_msg(MSGT_AVSYNC,MSGL_DBG2,"\nframe drop %d, %.2f\n", drop_frame, time_frame); /* go into unlimited-TF cycle */ @@ -1792,8 +1787,13 @@ if(time_frame>0.001 && !(vo_flags&256)){ mp_dbg(MSGT_AVSYNC,MSGL_DBG2,"### A:%8.3f (%8.3f) V:%8.3f A-V:%7.4f \n",a_pts,a_pts-audio_delay-delay,v_pts,(a_pts-delay-audio_delay)-v_pts); if(delay_corrected){ + static int drop_message=0; float x; AV_delay=(a_pts-delay-audio_delay)-v_pts; + if(drop_frame_cnt>50+drop_message*250 && AV_delay>0.5){ + ++drop_message; + mp_msg(MSGT_AVSYNC,MSGL_WARN,MSGTR_SystemTooSlow); + } x=AV_delay*0.1f; if(x<-max_pts_correction) x=-max_pts_correction; else if(x> max_pts_correction) x= max_pts_correction; |