mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-21 08:56:46 -05:00
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
This commit is contained in:
parent
cd3ba7d0f7
commit
1f6a90c963
1 changed files with 6 additions and 4 deletions
|
|
@ -560,10 +560,12 @@ struct pa_operation* pa_stream_cork(struct pa_stream *s, int b, void (*cb) (stru
|
||||||
uint32_t tag;
|
uint32_t tag;
|
||||||
assert(s && s->ref >= 1 && s->state == PA_STREAM_READY);
|
assert(s && s->ref >= 1 && s->state == PA_STREAM_READY);
|
||||||
|
|
||||||
if (!s->corked && b)
|
if (s->interpolate) {
|
||||||
s->ipol_usec = pa_stream_get_interpolated_time(s);
|
if (!s->corked && b)
|
||||||
else if (s->corked && !b)
|
s->ipol_usec = pa_stream_get_interpolated_time(s);
|
||||||
gettimeofday(&s->ipol_timestamp, NULL);
|
else if (s->corked && !b)
|
||||||
|
gettimeofday(&s->ipol_timestamp, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
s->corked = b;
|
s->corked = b;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue