Mercurial > mplayer.hg
comparison mplayer.c @ 10341:eee7cab79089
moved the system too slow message to MSGL_WARN, so gui users will not be annoyed.. (and imho it fits better into that category, warning vs error)
author | alex |
---|---|
date | Fri, 27 Jun 2003 10:16:14 +0000 |
parents | 7b0bc557987b |
children | 6180d7558f75 |
comparison
equal
deleted
inserted
replaced
10340:2eaabacd1429 | 10341:eee7cab79089 |
---|---|
2254 static int drop_message=0; | 2254 static int drop_message=0; |
2255 float x; | 2255 float x; |
2256 AV_delay=(a_pts-delay-audio_delay)-v_pts; | 2256 AV_delay=(a_pts-delay-audio_delay)-v_pts; |
2257 if(AV_delay>0.5 && drop_frame_cnt>50+drop_message*250){ | 2257 if(AV_delay>0.5 && drop_frame_cnt>50+drop_message*250){ |
2258 ++drop_message; | 2258 ++drop_message; |
2259 mp_msg(MSGT_AVSYNC,MSGL_ERR,MSGTR_SystemTooSlow); | 2259 mp_msg(MSGT_AVSYNC,MSGL_WARN,MSGTR_SystemTooSlow); |
2260 } | 2260 } |
2261 x=AV_delay*0.1f; | 2261 x=AV_delay*0.1f; |
2262 if(x<-max_pts_correction) x=-max_pts_correction; else | 2262 if(x<-max_pts_correction) x=-max_pts_correction; else |
2263 if(x> max_pts_correction) x= max_pts_correction; | 2263 if(x> max_pts_correction) x= max_pts_correction; |
2264 if(default_max_pts_correction>=0) | 2264 if(default_max_pts_correction>=0) |