summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authoruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-14 06:44:16 +0000
committeruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-14 06:44:16 +0000
commit7181a091f819eb19e9b0b811a3c4d74d9c41d516 (patch)
treef8fa9bf6ed936ef31834701ee43bb09785e105c9 /mplayer.c
parent031e9068ccc7109b8cd9e3b352d651fcb4722de3 (diff)
downloadmpv-7181a091f819eb19e9b0b811a3c4d74d9c41d516.tar.bz2
mpv-7181a091f819eb19e9b0b811a3c4d74d9c41d516.tar.xz
Remove some unused code.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20912 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/mplayer.c b/mplayer.c
index 79e7d621a4..15169be360 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -4153,11 +4153,8 @@ double last_pts = MP_NOPTS_VALUE;
int grab_frames=0;
int drop_frame=0; // current dropping status
int dropped_frames=0; // how many frames dropped since last non-dropped frame
-int too_slow_frame_cnt=0;
-int too_fast_frame_cnt=0;
// for auto-quality:
double vdecode_time;
-unsigned int lastframeout_ts=0;
/*float time_frame_corr_avg=0;*/ /* unused */
float next_frame_time=0;
@@ -4461,16 +4458,6 @@ if(time_frame>0.001 && !(vo_flags&256))
if(blit_frame){
unsigned int t2=GetTimer();
double tt;
- float j;
-#define FRAME_LAG_WARN 0.2
- j = ((float)t2 - lastframeout_ts) / 1000000;
- lastframeout_ts = GetTimer();
- if (j < frame_time + frame_time * -FRAME_LAG_WARN)
- too_fast_frame_cnt++;
- /* printf ("PANIC: too fast frame (%.3f)!\n", j); */
- else if (j > frame_time + frame_time * FRAME_LAG_WARN)
- too_slow_frame_cnt++;
- /* printf ("PANIC: too slow frame (%.3f)!\n", j); */
if(vo_config_count) video_out->flip_page();
if (play_n_frames >= 0) {
@@ -5379,8 +5366,6 @@ if(rel_seek_secs || abs_seek_pos){
osd_visible=(GetTimerMS() + 1000) | 1; // to revert to PLAY pointer after 1 sec
audio_time_usage=0; video_time_usage=0; vout_time_usage=0;
drop_frame_cnt=0;
- too_slow_frame_cnt=0;
- too_fast_frame_cnt=0;
if(vo_spudec) spudec_reset(vo_spudec);
}