summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
authorTomer Barletz <barlety@gmail.com>2009-02-18 15:25:57 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2009-02-18 15:25:57 +0000
commiteecc17a7d5281209dcb67dae21ad1de978f3d0ed (patch)
tree226ecf8838addc77149e20647861e4bcbe633977 /ffplay.c
parent712de377f7982a2a6b24c2f75c2ec9daf92f530f (diff)
Move debug trace to the new compute_frame_delay() function.
Patch by Tomer Barletz: barletz gmail Originally committed as revision 17434 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ffplay.c b/ffplay.c
index 8cecc87a2d..4785f2d0ec 100644
--- 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);