changeset 1459:622c504f36ef

printf stuff moved seek.c->mplayer.c, resetting drop_frame_cnt after seek
author arpi
date Tue, 07 Aug 2001 16:03:30 +0000
parents bd05276ed3d7
children fbcadb06e44f
files mplayer.c
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Tue Aug 07 08:59:27 2001 +0000
+++ b/mplayer.c	Tue Aug 07 16:03:30 2001 +0000
@@ -1763,6 +1763,18 @@
       // success:
 
       if(sh_audio){
+	if(verbose){
+	    float a_pts=d_audio->pts;
+            a_pts+=(ds_tell_pts(d_audio)-sh_audio->a_in_buffer_len)/(float)sh_audio->i_bps;
+	    printf("SEEK: A: %5.3f  V: %5.3f  A-V: %5.3f   \n",a_pts,d_video->pts,a_pts-d_video->pts);
+	}
+        printf("A:%6.1f  V:%6.1f  A-V:%7.3f  ct: ?   \r",d_audio->pts,d_video->pts,0.0f);
+      } else {
+        printf("A: ---   V:%6.1f   \r",d_video->pts);
+      }
+      fflush(stdout);
+
+      if(sh_audio){
         current_module="audio_reset";
         audio_out->reset(); // stop audio, throwing away buffered data
         current_module=NULL;
@@ -1784,6 +1796,7 @@
       max_pts_correction=0.1;
       force_redraw=5;
       audio_time_usage=0; video_time_usage=0; vout_time_usage=0;
+      drop_frame_cnt=0;
   
   }
   rel_seek_secs=0;