1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-16 20:27:23 +00:00

player: fix display-sync adrop speed limiting

Commit 49d94853 worked only at the start of playback.
This commit is contained in:
wm4 2015-11-04 10:57:07 +01:00
parent e187de7eed
commit 350d902799

View File

@ -689,7 +689,8 @@ void fill_audio_out_buffers(struct MPContext *mpctx, double endpts)
assert(played >= 0 && played <= data.samples);
mp_audio_buffer_skip(mpctx->ao_buffer, played);
mpctx->audio_drop_throttle -= played / play_samplerate;
mpctx->audio_drop_throttle =
MPMAX(0, mpctx->audio_drop_throttle - played / play_samplerate);
dump_audio_stats(mpctx);