mirror of https://github.com/mpv-player/mpv
reset estimation also on too negative diff
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16141 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
d7cab73e08
commit
219578d73d
|
@ -186,7 +186,7 @@ static int outputaudio(jack_nframes_t nframes, void *arg) {
|
|||
if (estimate) {
|
||||
float now = (float)GetTimer() / 1000000.0;
|
||||
float diff = callback_time + callback_interval - now;
|
||||
if (diff < 0.002)
|
||||
if ((diff > -0.002) && (diff < 0.002))
|
||||
callback_time += callback_interval;
|
||||
else
|
||||
callback_time = now;
|
||||
|
|
Loading…
Reference in New Issue