summaryrefslogtreecommitdiffstats
path: root/sesman/chansrv
diff options
context:
space:
mode:
authorspeidy <speidy@gmail.com>2014-04-22 05:16:15 +0300
committerspeidy <speidy@gmail.com>2014-04-22 05:16:15 +0300
commitd7b49762fa6a5a44fc63446b8f66415b8c9b033f (patch)
tree3f0e65de0eefcc83ec08c8d922dd7ee487b62ce0 /sesman/chansrv
parente17d2375ea959079cef0539838f834a4e5643784 (diff)
downloadxrdp-proprietary-d7b49762fa6a5a44fc63446b8f66415b8c9b033f.tar.gz
xrdp-proprietary-d7b49762fa6a5a44fc63446b8f66415b8c9b033f.zip
pulseaudio: let module-xrdp-source compile on CentOS6 (PA 0.9.21)
Diffstat (limited to 'sesman/chansrv')
-rw-r--r--sesman/chansrv/pulse/module-xrdp-source.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sesman/chansrv/pulse/module-xrdp-source.c b/sesman/chansrv/pulse/module-xrdp-source.c
index 95465c65..1c03b069 100644
--- a/sesman/chansrv/pulse/module-xrdp-source.c
+++ b/sesman/chansrv/pulse/module-xrdp-source.c
@@ -369,7 +369,15 @@ int pa__init(pa_module *m) {
u->source->thread_info.max_rewind =
pa_usec_to_bytes(u->block_usec, &u->source->sample_spec);
- if (!(u->thread = pa_thread_new("null-source", thread_func, u))) {
+ #if defined(PA_CHECK_VERSION)
+ #if PA_CHECK_VERSION(0, 9, 22)
+ if (!(u->thread = pa_thread_new("xrdp-source", thread_func, u))) {
+ #else
+ if (!(u->thread = pa_thread_new(thread_func, u))) {
+ #endif
+ #else
+ if (!(u->thread = pa_thread_new(thread_func, u)))
+ #endif
pa_log("Failed to create thread.");
goto fail;
}