diff options
author | wm4 <wm4@nowhere> | 2015-10-30 14:05:41 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-10-30 14:05:41 +0100 |
commit | 7aba3a5d96b0d3b22c9e93057b6d1b4cba0e5104 (patch) | |
tree | 3271f366b12d492532f4e49463da305c75e7112a /player/video.c | |
parent | acd5816a6df9e2de9e8dd307dde12a90717d464a (diff) | |
download | mpv-7aba3a5d96b0d3b22c9e93057b6d1b4cba0e5104.tar.bz2 mpv-7aba3a5d96b0d3b22c9e93057b6d1b4cba0e5104.tar.xz |
command: add mistimed-frame-count property
Does what the manpage says. This is a replacement incrementing the
dropped frame counter (see previous commit).
Diffstat (limited to 'player/video.c')
-rw-r--r-- | player/video.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/player/video.c b/player/video.c index af98c676ed..857fb017bc 100644 --- a/player/video.c +++ b/player/video.c @@ -211,6 +211,7 @@ void reset_video_state(struct MPContext *mpctx) mpctx->display_sync_disable_counter = 0; mpctx->dropped_frames_total = 0; mpctx->dropped_frames = 0; + mpctx->mistimed_frames_total = 0; mpctx->drop_message_shown = 0; mpctx->display_sync_drift_dir = 0; @@ -1034,6 +1035,9 @@ 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) + mpctx->mistimed_frames_total += 1; + mpctx->total_avsync_change = 0; update_av_diff(mpctx, time_left); |