From 219578d73d24c63f045a61b3e233be1d308bc77d Mon Sep 17 00:00:00 2001 From: reimar Date: Thu, 28 Jul 2005 17:11:22 +0000 Subject: [PATCH] reset estimation also on too negative diff git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16141 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libao2/ao_jack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libao2/ao_jack.c b/libao2/ao_jack.c index 1cda28d1eb..56a39deb72 100644 --- a/libao2/ao_jack.c +++ b/libao2/ao_jack.c @@ -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;