From d7b49762fa6a5a44fc63446b8f66415b8c9b033f Mon Sep 17 00:00:00 2001 From: speidy Date: Tue, 22 Apr 2014 05:16:15 +0300 Subject: [PATCH] pulseaudio: let module-xrdp-source compile on CentOS6 (PA 0.9.21) --- sesman/chansrv/pulse/module-xrdp-source.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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; }