mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-16 08:56:40 -05:00
fix x11 build
disable prebuf on drain git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@136 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
2d6d3e5c47
commit
81822a7519
5 changed files with 15 additions and 6 deletions
|
|
@ -748,12 +748,16 @@ static void command_drain_playback_stream(struct pa_pdispatch *pd, uint32_t comm
|
|||
}
|
||||
|
||||
s->drain_request = 0;
|
||||
|
||||
pa_memblockq_prebuf_disable(s->memblockq);
|
||||
|
||||
if (!pa_memblockq_is_readable(s->memblockq))
|
||||
pa_pstream_send_simple_ack(c->pstream, tag);
|
||||
else {
|
||||
s->drain_request = 1;
|
||||
s->drain_tag = tag;
|
||||
|
||||
pa_sink_notify(s->sink_input->sink);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue