fix synchronized clock change
authorLennart Poettering <lennart@poettering.net>
Mon, 9 Jan 2006 12:37:17 +0000 (12:37 +0000)
committerLennart Poettering <lennart@poettering.net>
Mon, 9 Jan 2006 12:37:17 +0000 (12:37 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@425 fefdeb5f-60dc-0310-8127-8f9354f1896f

polyp/polyplib-stream.c

index 440217e..a1a6699 100644 (file)
@@ -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)) {
+        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)