mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-12 13:30:10 -05:00
rtpoll: Fix condition for DEBUG_TIMING output
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
This commit is contained in:
parent
b5b4a1078c
commit
2638591497
1 changed files with 4 additions and 2 deletions
|
|
@ -298,10 +298,12 @@ int pa_rtpoll_run(pa_rtpoll *p, bool wait_op) {
|
|||
pa_usec_t now = pa_rtclock_now();
|
||||
p->awake = now - p->timestamp;
|
||||
p->timestamp = now;
|
||||
if (!wait_op || p->quit || p->timer_enabled)
|
||||
if (wait_op && !p->quit && p->timer_enabled)
|
||||
pa_log("poll timeout: %d ms ",(int) ((timeout.tv_sec*1000) + (timeout.tv_usec / 1000)));
|
||||
else
|
||||
else if (q->quit)
|
||||
pa_log("poll timeout is ZERO");
|
||||
else
|
||||
pa_log("poll timeout is FOREVER");
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue