Fix infinite poll pulse audio bug
This commit is contained in:
parent
b193b2594d
commit
4ef38faada
1 changed files with 3 additions and 2 deletions
|
@ -190,9 +190,10 @@ static void audio_pulse_play(const uint8_t *buf, size_t len) {
|
||||||
printf("pa_stream_write failed\n");
|
printf("pa_stream_write failed\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
while (!pas.write_complete) {
|
// FIXME: what was the purpose of this? at least on pipewire, this is an infinite poll
|
||||||
|
/*while (!pas.write_complete) {
|
||||||
pa_mainloop_iterate(pas.mainloop, true, NULL);
|
pa_mainloop_iterate(pas.mainloop, true, NULL);
|
||||||
}
|
}*/
|
||||||
pas.write_complete = false;
|
pas.write_complete = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue