diff options
author | wm4 <wm4@nowhere> | 2016-04-24 20:14:51 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-04-24 20:14:51 +0200 |
commit | 5800d1845ff1ff3271d5c5ca4624de3a3c78a312 (patch) | |
tree | ab87a06c44a4d3a02aaa45756eb0d66dccc39bd6 /player | |
parent | 5f97bd42234ecc6fca7e06b9831318d67e865c8b (diff) | |
download | mpv-5800d1845ff1ff3271d5c5ca4624de3a3c78a312.tar.bz2 mpv-5800d1845ff1ff3271d5c5ca4624de3a3c78a312.tar.xz |
player: always show the first frame in DS mode
Fixes bogus frame drop counter in cover art mode.
Diffstat (limited to 'player')
-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 271406070c..de3eb963fa 100644 --- a/player/video.c +++ b/player/video.c @@ -1130,6 +1130,10 @@ static void handle_display_sync_frame(struct MPContext *mpctx, drop_repeat = MPCLAMP(drop_repeat, -num_vsyncs, num_vsyncs * 10); num_vsyncs += drop_repeat; + // Always show the first frame. + if (mpctx->num_past_frames <= 1 && num_vsyncs < 1) + num_vsyncs = 1; + // Estimate the video position, so we can calculate a good A/V difference // value below. This is used to estimate A/V drift. double time_left = vo_get_delay(vo); |