From 5bc9b273b33b7ed4f85684e956a2e8ecb5645277 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 25 Nov 2015 22:07:47 +0100 Subject: player: log some more display-sync information --- player/video.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'player/video.c') diff --git a/player/video.c b/player/video.c index c90f4091a7..97b983e106 100644 --- a/player/video.c +++ b/player/video.c @@ -999,9 +999,10 @@ static void handle_display_sync_frame(struct MPContext *mpctx, mpctx->display_sync_error += frame_duration - num_vsyncs * vsync; frame->vsync_offset = mpctx->display_sync_error * 1e6; - MP_DBG(mpctx, "s=%f vsyncs=%d dur=%f ratio=%f err=%.20f (%f)\n", + MP_DBG(mpctx, "s=%f vsyncs=%d dur=%f ratio=%f err=%.20f (%f/%f)\n", mpctx->speed_factor_v, num_vsyncs, adjusted_duration, ratio, - mpctx->display_sync_error, mpctx->display_sync_error / vsync); + mpctx->display_sync_error, mpctx->display_sync_error / vsync, + mpctx->display_sync_error / frame_duration); MP_STATS(mpctx, "value %f avdiff", av_diff); @@ -1030,8 +1031,10 @@ static void handle_display_sync_frame(struct MPContext *mpctx, // Likewise, we know sync is off, but is going to be compensated. time_left += drop_repeat * vsync; - if (drop_repeat) + if (drop_repeat) { mpctx->mistimed_frames_total += 1; + MP_STATS(mpctx, "mistimed"); + } mpctx->total_avsync_change = 0; update_av_diff(mpctx, time_left * opts->playback_speed); -- cgit v1.2.3