modules: No point in supporting anything older than PulseAudio 10.

This commit is contained in:
Juho Hämäläinen 2019-10-08 13:23:53 +03:00
parent ea451e9879
commit 9d5daf5f87
3 changed files with 0 additions and 13 deletions

View file

@ -398,11 +398,7 @@ static void thread_func(void *userdata) {
pa_rtpoll_set_timer_disabled(u->rtpoll);
/* Sleep */
#if (PULSEAUDIO_VERSION == 5)
if ((ret = pa_rtpoll_run(u->rtpoll, true)) < 0)
#elif (PULSEAUDIO_VERSION >= 6)
if ((ret = pa_rtpoll_run(u->rtpoll)) < 0)
#endif
goto fail;
if (ret == 0)

View file

@ -228,11 +228,7 @@ static void thread_func(void *userdata) {
pa_rtpoll_set_timer_disabled(u->rtpoll);
/* Sleep */
#if (PULSEAUDIO_VERSION == 5)
if ((ret = pa_rtpoll_run(u->rtpoll, true)) < 0)
#elif (PULSEAUDIO_VERSION >= 6)
if ((ret = pa_rtpoll_run(u->rtpoll)) < 0)
#endif
goto fail;
if (ret == 0)

View file

@ -841,14 +841,9 @@ int pa__init(pa_module *m) {
u->modargs = ma;
u->module = m;
#if (PULSEAUDIO_VERSION >= 10)
pa_card_choose_initial_profile(u->card);
#endif
init_profile(u);
#if (PULSEAUDIO_VERSION >= 10)
pa_card_put(u->card);
#endif
return 0;