diff options
author | wm4 <wm4@nowhere> | 2014-10-10 13:18:53 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-10 13:18:53 +0200 |
commit | bd41fc7723a6e163de88c678826ff87779ee1af6 (patch) | |
tree | c80e4600d473001e62e8288928b8911875eb199b /video/out/dither.c | |
parent | a8ec044d54817186193191f07b6d763cb823f1a1 (diff) | |
download | mpv-bd41fc7723a6e163de88c678826ff87779ee1af6.tar.bz2 mpv-bd41fc7723a6e163de88c678826ff87779ee1af6.tar.xz |
audio/out/push: fix EOF heuristic
Since the internal AO driver API has no proper way to determine EOF, we
need to guess by querying get_delay. But some AOs (e.g. ao_pulse with
no-latency-hacks set) may never reach 0, maybe because they naively add
the latency to the buffer level. In this case our heuristic can break.
Fix by always using the delay to estimate the EOF time. It's not even
that important - it's mostly used to avoid blocking draining. So this
should be ok.
CC: @mpv-player/stable (maybe)
Diffstat (limited to 'video/out/dither.c')
0 files changed, 0 insertions, 0 deletions