From: Lennart Poettering Date: Mon, 9 Jan 2006 12:38:06 +0000 (+0000) Subject: improve sync clock change X-Git-Tag: submit/2.0-panda/20130828.192557~4148 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=80ae72ce45dbc23ddc360749924110dcc752491e;p=profile%2Fivi%2Fpulseaudio-panda.git improve sync clock change git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@426 fefdeb5f-60dc-0310-8127-8f9354f1896f --- diff --git a/polyp/polyplib-stream.c b/polyp/polyplib-stream.c index a1a6699..6a73c60 100644 --- a/polyp/polyplib-stream.c +++ b/polyp/polyplib-stream.c @@ -414,7 +414,7 @@ static void stream_get_latency_info_callback(struct pa_pdispatch *pd, uint32_t c } else { gettimeofday(&now, NULL); - if (pa_timeval_cmp(&local, &remote) < 0 && pa_timeval_cmp(&remote, &now) < 0) { + if (pa_timeval_cmp(&local, &remote) <= 0 && pa_timeval_cmp(&remote, &now) <= 0) { /* local and remote seem to have synchronized clocks */ if (o->stream->direction == PA_STREAM_PLAYBACK)