mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
Revert "mainloop: fix timeout assignment in pa_mainloop_prepare"
This reverts commit 6b1719d0ed, as it
inadvertently broke the semantics of timeout in the API.
Fixes: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/1039
This commit is contained in:
parent
2ea425d194
commit
e6b3edd3c1
2 changed files with 3 additions and 5 deletions
|
|
@ -799,10 +799,8 @@ int pa_mainloop_prepare(pa_mainloop *m, int timeout) {
|
|||
|
||||
m->prepared_timeout = calc_next_timeout(m);
|
||||
if (timeout >= 0) {
|
||||
uint64_t u = (uint64_t) timeout * PA_USEC_PER_MSEC;
|
||||
|
||||
if (u < m->prepared_timeout || m->prepared_timeout == PA_USEC_INVALID)
|
||||
m->prepared_timeout = u;
|
||||
if (timeout < m->prepared_timeout || m->prepared_timeout == PA_USEC_INVALID)
|
||||
m->prepared_timeout = timeout;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue