1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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
This commit is contained in:
Tomer Barletz 2009-02-18 15:25:57 +00:00 committed by Benoit Fouet
parent 712de377f7
commit eecc17a7d5

View File

@ -1048,6 +1048,11 @@ static double compute_frame_delay(double frame_current_pts, VideoState *is)
actual_delay = 0.010; 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; return actual_delay;
} }
@ -1074,11 +1079,6 @@ static void video_refresh_timer(void *opaque)
/* launch timer for next picture */ /* launch timer for next picture */
schedule_refresh(is, (int)(compute_frame_delay(vp->pts, is) * 1000 + 0.5)); 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_st) {
if (is->subtitle_stream_changed) { if (is->subtitle_stream_changed) {
SDL_LockMutex(is->subpq_mutex); SDL_LockMutex(is->subpq_mutex);