summaryrefslogtreecommitdiffstats
path: root/polyp
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-11-04 18:56:09 +0000
committerLennart Poettering <lennart@poettering.net>2004-11-04 18:56:09 +0000
commit1f6a90c963356d3889cce4717a1a6b03cb039254 (patch)
tree2aa76d50e0754703f7b35fbc3548c89d9b7d2904 /polyp
parentcd3ba7d0f745f8063cc018aeca320939ef3cd637 (diff)
fix client libaryr in case no latency interpolation is required
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@270 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp')
-rw-r--r--polyp/polyplib-stream.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/polyp/polyplib-stream.c b/polyp/polyplib-stream.c
index 286702b2..312f1deb 100644
--- a/polyp/polyplib-stream.c
+++ b/polyp/polyplib-stream.c
@@ -560,10 +560,12 @@ struct pa_operation* pa_stream_cork(struct pa_stream *s, int b, void (*cb) (stru
uint32_t tag;
assert(s && s->ref >= 1 && s->state == PA_STREAM_READY);
- if (!s->corked && b)
- s->ipol_usec = pa_stream_get_interpolated_time(s);
- else if (s->corked && !b)
- gettimeofday(&s->ipol_timestamp, NULL);
+ if (s->interpolate) {
+ if (!s->corked && b)
+ s->ipol_usec = pa_stream_get_interpolated_time(s);
+ else if (s->corked && !b)
+ gettimeofday(&s->ipol_timestamp, NULL);
+ }
s->corked = b;