mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
native: Don't enable prebuffering when draining
BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=64284
This commit is contained in:
parent
ecf3ab2b57
commit
1e42a289d4
1 changed files with 7 additions and 1 deletions
|
|
@ -1555,7 +1555,13 @@ static int sink_input_process_msg(pa_msgobject *o, int code, void *userdata, int
|
|||
|
||||
windex = pa_memblockq_get_write_index(s->memblockq);
|
||||
|
||||
pa_memblockq_prebuf_force(s->memblockq);
|
||||
/* We enable prebuffering so that after CORKED -> RUNNING
|
||||
* transitions we don't have trouble with underruns in case the
|
||||
* buffer has too little data. This must not be done when draining
|
||||
* has been requested, however, otherwise the buffered audio would
|
||||
* never play. */
|
||||
if (!s->drain_request)
|
||||
pa_memblockq_prebuf_force(s->memblockq);
|
||||
|
||||
handle_seek(s, windex);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue