fix synchronized clock change

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@425 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2006-01-09 12:37:17 +00:00
parent 656cf87993
commit 794033aa75

View file

@ -414,7 +414,7 @@ static void stream_get_latency_info_callback(struct pa_pdispatch *pd, uint32_t c
} else { } else {
gettimeofday(&now, NULL); 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 */ /* local and remote seem to have synchronized clocks */
if (o->stream->direction == PA_STREAM_PLAYBACK) if (o->stream->direction == PA_STREAM_PLAYBACK)