From b250c19a38a97107a7e9ee53370eb2c5d033866d Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 26 Nov 2015 18:53:32 +0100 Subject: player: make display-vdrop mode do what the manpage claims Don't change video speed in this mode, which is closer to the claim on the manpage that it's close to the behavior of the "audio" mode. --- player/video.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'player/video.c') diff --git a/player/video.c b/player/video.c index 97b983e106..1783ba7a62 100644 --- a/player/video.c +++ b/player/video.c @@ -968,10 +968,13 @@ static void handle_display_sync_frame(struct MPContext *mpctx, if (adjusted_duration <= 0.001 || adjusted_duration > 0.5) goto done; - mpctx->speed_factor_v = find_best_speed(mpctx, vsync); - // If it doesn't work, play at normal speed. - if (fabs(mpctx->speed_factor_v - 1.0) > opts->sync_max_video_change / 100) - mpctx->speed_factor_v = 1.0; + mpctx->speed_factor_v = 1.0; + if (mode != VS_DISP_VDROP) { + double best = find_best_speed(mpctx, vsync); + // If it doesn't work, play at normal speed. + if (fabs(best - 1.0) <= opts->sync_max_video_change / 100) + mpctx->speed_factor_v = best; + } double av_diff = mpctx->last_av_difference; if (fabs(av_diff) > 0.5) -- cgit v1.2.3