diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-10-27 01:09:51 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-10-27 01:09:51 +0000 |
commit | ee452b0f06c82dd870de82fb3e6bdd4e14d29f3c (patch) | |
tree | 7f2a226a5c2596a8d97938711db16e1d18f6039b /polyp/polyplib-stream.c | |
parent | 148202d432cbb4a303b0008b9ff9d64bdab99a51 (diff) |
two latency interpolation fixes
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@257 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/polyplib-stream.c')
-rw-r--r-- | polyp/polyplib-stream.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/polyp/polyplib-stream.c b/polyp/polyplib-stream.c index 68035b0f..c8fef673 100644 --- a/polyp/polyplib-stream.c +++ b/polyp/polyplib-stream.c @@ -420,7 +420,7 @@ static void stream_get_latency_info_callback(struct pa_pdispatch *pd, uint32_t c } if (o->stream->interpolate) { - o->stream->ipol_timestamp = now; + o->stream->ipol_timestamp = i.timestamp; o->stream->ipol_usec = pa_stream_get_time(o->stream, &i); } @@ -659,7 +659,7 @@ pa_usec_t pa_stream_get_time(struct pa_stream *s, const struct pa_latency_info * pa_usec_t usec; assert(s); - usec = pa_bytes_to_usec(s->counter, &s->sample_spec); + usec = pa_bytes_to_usec(i->counter, &s->sample_spec); if (i) { if (s->direction == PA_STREAM_PLAYBACK) { |