mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01: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;
|
||||
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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue