summaryrefslogtreecommitdiffstats
path: root/sesman/chansrv/pulse/module-xrdp-sink.c
diff options
context:
space:
mode:
authorjsorg71 <jay.sorg@gmail.com>2016-02-23 23:19:59 -0800
committerjsorg71 <jay.sorg@gmail.com>2016-02-23 23:19:59 -0800
commitf53b3bb737905ea9c53dc9b18594cfe78b077866 (patch)
tree2b65c209983ab957cc6a9a4f6ded21e30d870b89 /sesman/chansrv/pulse/module-xrdp-sink.c
parentf100036cd9e2b65fd8fdc315b176bcca4dd09a51 (diff)
parent93f7bcb71bf92fedf88fb080fa19dfec3d2e70f7 (diff)
downloadxrdp-proprietary-f53b3bb737905ea9c53dc9b18594cfe78b077866.tar.gz
xrdp-proprietary-f53b3bb737905ea9c53dc9b18594cfe78b077866.zip
Merge pull request #326 from metalefty/pulseaudio-6.0
pulse: fix build pulseaudio 6.0 or higher
Diffstat (limited to 'sesman/chansrv/pulse/module-xrdp-sink.c')
-rw-r--r--sesman/chansrv/pulse/module-xrdp-sink.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sesman/chansrv/pulse/module-xrdp-sink.c b/sesman/chansrv/pulse/module-xrdp-sink.c
index f56644b9..79cd7b27 100644
--- a/sesman/chansrv/pulse/module-xrdp-sink.c
+++ b/sesman/chansrv/pulse/module-xrdp-sink.c
@@ -440,7 +440,11 @@ static void thread_func(void *userdata) {
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) {
+#endif
goto fail;
}