diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-11-08 23:48:19 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-11-08 23:48:19 +0000 |
commit | 4bb14837dd09777e45793bda42512d900c6b500e (patch) | |
tree | 65a8a5a11b4a99707c009a197335554e6e219f91 /polyp/polyplib-simple.c | |
parent | b55923a8d33a1c4ed2f892a0da36c9c679e7d828 (diff) |
implemented pax11publish.c
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@275 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/polyplib-simple.c')
-rw-r--r-- | polyp/polyplib-simple.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/polyp/polyplib-simple.c b/polyp/polyplib-simple.c index 0e180af0..aed1ca55 100644 --- a/polyp/polyplib-simple.c +++ b/polyp/polyplib-simple.c @@ -325,8 +325,12 @@ static void latency_complete(struct pa_stream *s, const struct pa_latency_info * if (!l) p->dead = 1; - else - p->latency = l->buffer_usec + l->sink_usec + l->transport_usec; + else { + int negative = 0; + p->latency = pa_stream_get_latency(s, l, &negative); + if (negative) + p->latency = 0; + } } pa_usec_t pa_simple_get_playback_latency(struct pa_simple *p, int *perror) { |