mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-19 08:57:00 -05:00
simplify some code
This commit is contained in:
parent
9f89907bfa
commit
ed67b07c41
1 changed files with 44 additions and 47 deletions
|
|
@ -478,7 +478,8 @@ static void update_timer(pa_rtpoll *p) {
|
||||||
#ifdef HAVE_PPOLL
|
#ifdef HAVE_PPOLL
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
if (!p->dont_use_ppoll) {
|
if (p->dont_use_ppoll)
|
||||||
|
return;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (p->timer == (timer_t) -1) {
|
if (p->timer == (timer_t) -1) {
|
||||||
|
|
@ -528,10 +529,6 @@ static void update_timer(pa_rtpoll *p) {
|
||||||
p->timer_armed = p->timer_enabled;
|
p->timer_armed = p->timer_enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __linux__
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue