Merge pull request #326 from metalefty/pulseaudio-6.0
pulse: fix build pulseaudio 6.0 or higher
This commit is contained in:
commit
f53b3bb737
@ -440,7 +440,11 @@ static void thread_func(void *userdata) {
|
|||||||
pa_rtpoll_set_timer_disabled(u->rtpoll);
|
pa_rtpoll_set_timer_disabled(u->rtpoll);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(PA_CHECK_VERSION) && PA_CHECK_VERSION(6, 0, 0)
|
||||||
|
if ((ret = pa_rtpoll_run(u->rtpoll)) < 0) {
|
||||||
|
#else
|
||||||
if ((ret = pa_rtpoll_run(u->rtpoll, TRUE)) < 0) {
|
if ((ret = pa_rtpoll_run(u->rtpoll, TRUE)) < 0) {
|
||||||
|
#endif
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -339,8 +339,13 @@ static void thread_func(void *userdata) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Hmm, nothing to do. Let's sleep */
|
/* Hmm, nothing to do. Let's sleep */
|
||||||
if ((ret = pa_rtpoll_run(u->rtpoll, TRUE)) < 0)
|
#if defined(PA_CHECK_VERSION) && PA_CHECK_VERSION(6, 0, 0)
|
||||||
|
if ((ret = pa_rtpoll_run(u->rtpoll)) < 0) {
|
||||||
|
#else
|
||||||
|
if ((ret = pa_rtpoll_run(u->rtpoll, TRUE)) < 0) {
|
||||||
|
#endif
|
||||||
goto fail;
|
goto fail;
|
||||||
|
}
|
||||||
|
|
||||||
if (ret == 0)
|
if (ret == 0)
|
||||||
goto finish;
|
goto finish;
|
||||||
|
Loading…
Reference in New Issue
Block a user