[pulseaudio-commits] [Git][pulseaudio/pulseaudio][master] mainloop: fix timeout assignment in pa_mainloop_prepare
Tanu Kaskinen
gitlab at gitlab.freedesktop.org
Mon Jun 10 08:00:25 UTC 2019
Tanu Kaskinen pushed to branch master at PulseAudio / pulseaudio
Commits:
6b1719d0 by shdown at 2019-06-09T13:40:14Z
mainloop: fix timeout assignment in pa_mainloop_prepare
The function calculates the correct timeout (in microseconds) to assign
in the `u` variable, but then assigns `m->prepared_timeout` the value
of the `timeout` argument (in milliseconds).
- - - - -
1 changed file:
- src/pulse/mainloop.c
Changes:
=====================================
src/pulse/mainloop.c
=====================================
@@ -802,7 +802,7 @@ int pa_mainloop_prepare(pa_mainloop *m, int timeout) {
uint64_t u = (uint64_t) timeout * PA_USEC_PER_MSEC;
if (u < m->prepared_timeout || m->prepared_timeout == PA_USEC_INVALID)
- m->prepared_timeout = timeout;
+ m->prepared_timeout = u;
}
}
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/commit/6b1719d0ed100ce5a65f28c3c4d4f3b59f3f56a0
--
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/commit/6b1719d0ed100ce5a65f28c3c4d4f3b59f3f56a0
You're receiving this email because of your account on gitlab.freedesktop.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-commits/attachments/20190610/617fdb0c/attachment.html>
More information about the pulseaudio-commits
mailing list