From 49d94853b5cd5d8ab156dc551df0dd7d216f442f Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 3 Nov 2015 20:29:25 +0100 Subject: player: limit speed change in display-sync adrop mode Discontinuities (like toggling fullscreen) can cause multiple frames to be dropped in succession, which sounds very weird. It's better to drop some video frames instead to compensate for larger desyncs. We roughly base it on the maximum allowed speed changes (audio change is "additional" to the video change to account for deviations when playing at max. video speed change). --- player/core.h | 1 + 1 file changed, 1 insertion(+) (limited to 'player/core.h') diff --git a/player/core.h b/player/core.h index fb7c1ed975..80bd08266c 100644 --- a/player/core.h +++ b/player/core.h @@ -268,6 +268,7 @@ typedef struct MPContext { int display_sync_drift_dir; // Timing error (in seconds) due to rounding on vsync boundaries double display_sync_error; + double audio_drop_throttle; int display_sync_disable_counter; // Number of mistimed frames. int mistimed_frames_total; -- cgit v1.2.3