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:
reimar 2005-07-28 17:11:22 +00:00
parent d7cab73e08
commit 219578d73d
1 changed files with 1 additions and 1 deletions

View File

@ -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;