mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
alsa-sink: fix mmap_write() work_done
mmap_write() work_done is wrongly initilized to TRUE. It ends up never being FALSE. Fix it to reduce the costly update_smoother() calls.
This commit is contained in:
parent
aa7bc322e2
commit
226ddb1d39
1 changed files with 1 additions and 1 deletions
|
|
@ -479,7 +479,7 @@ static size_t check_left_to_play(struct userdata *u, size_t n_bytes, pa_bool_t o
|
||||||
}
|
}
|
||||||
|
|
||||||
static int mmap_write(struct userdata *u, pa_usec_t *sleep_usec, pa_bool_t polled, pa_bool_t on_timeout) {
|
static int mmap_write(struct userdata *u, pa_usec_t *sleep_usec, pa_bool_t polled, pa_bool_t on_timeout) {
|
||||||
pa_bool_t work_done = TRUE;
|
pa_bool_t work_done = FALSE;
|
||||||
pa_usec_t max_sleep_usec = 0, process_usec = 0;
|
pa_usec_t max_sleep_usec = 0, process_usec = 0;
|
||||||
size_t left_to_play;
|
size_t left_to_play;
|
||||||
unsigned j = 0;
|
unsigned j = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue