diff options
author | wm4 <wm4@nowhere> | 2015-11-26 18:53:32 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-11-26 18:53:32 +0100 |
commit | b250c19a38a97107a7e9ee53370eb2c5d033866d (patch) | |
tree | fe20edc96048ceb1dee6fb67c17fb7e50eb53e80 | |
parent | 69ba4f776ffffc0fa59a88ddcb2cd22d0326d007 (diff) | |
download | mpv-b250c19a38a97107a7e9ee53370eb2c5d033866d.tar.bz2 mpv-b250c19a38a97107a7e9ee53370eb2c5d033866d.tar.xz |
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.
-rw-r--r-- | player/video.c | 11 |
1 files changed, 7 insertions, 4 deletions
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) |