player: always show the first frame in DS mode

Fixes bogus frame drop counter in cover art mode.
This commit is contained in:
wm4 2016-04-24 20:14:51 +02:00
parent 5f97bd4223
commit 5800d1845f
1 changed files with 4 additions and 0 deletions

View File

@ -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);