]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Move debug trace to the new compute_frame_delay() function.
authorbenoit <benoit@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Wed, 18 Feb 2009 15:25:57 +0000 (15:25 +0000)
committerbenoit <benoit@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Wed, 18 Feb 2009 15:25:57 +0000 (15:25 +0000)
Patch by Tomer Barletz: barletz gmail

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17434 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

ffplay.c

index 8cecc87a2dabd12c960650b197ef23e5bae86946..4785f2d0ec034556d39d552e5a1024719b67cc04 100644 (file)
--- a/ffplay.c
+++ b/ffplay.c
@@ -1048,6 +1048,11 @@ static double compute_frame_delay(double frame_current_pts, VideoState *is)
         actual_delay = 0.010;
     }
 
+#if defined(DEBUG_SYNC)
+    printf("video: delay=%0.3f actual_delay=%0.3f pts=%0.3f A-V=%f\n",
+            delay, actual_delay, frame_current_pts, -diff);
+#endif
+
     return actual_delay;
 }
 
@@ -1074,11 +1079,6 @@ static void video_refresh_timer(void *opaque)
             /* launch timer for next picture */
             schedule_refresh(is, (int)(compute_frame_delay(vp->pts, is) * 1000 + 0.5));
 
-#if defined(DEBUG_SYNC)
-            printf("video: delay=%0.3f actual_delay=%0.3f pts=%0.3f A-V=%f\n",
-                   delay, actual_delay, vp->pts, -diff);
-#endif
-
             if(is->subtitle_st) {
                 if (is->subtitle_stream_changed) {
                     SDL_LockMutex(is->subpq_mutex);