summaryrefslogtreecommitdiffstats
path: root/player/video.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-11-25 22:07:47 +0100
committerwm4 <wm4@nowhere>2015-11-25 22:07:47 +0100
commit5bc9b273b33b7ed4f85684e956a2e8ecb5645277 (patch)
treeb27ee4f96293f5e47017de961d698077e70cb8e4 /player/video.c
parent04257417542212c72e74a26d3b96c4fead51578f (diff)
downloadmpv-5bc9b273b33b7ed4f85684e956a2e8ecb5645277.tar.bz2
mpv-5bc9b273b33b7ed4f85684e956a2e8ecb5645277.tar.xz
player: log some more display-sync information
Diffstat (limited to 'player/video.c')
-rw-r--r--player/video.c9
1 files changed, 6 insertions, 3 deletions
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);