diff options
author | Idan Freiberg <speidy@gmail.com> | 2014-04-28 07:07:40 +0300 |
---|---|---|
committer | Idan Freiberg <speidy@gmail.com> | 2014-04-28 07:07:40 +0300 |
commit | 42de9947412386c61b173216c04496255fe328c8 (patch) | |
tree | e8ef4e158b4b03d233208c0832a2f08f11c9c934 /sesman/chansrv/pulse/module-xrdp-source.c | |
parent | c509cba6c62ebba310c914a9ddacee7cb6256046 (diff) | |
parent | d7b49762fa6a5a44fc63446b8f66415b8c9b033f (diff) | |
download | xrdp-proprietary-42de9947412386c61b173216c04496255fe328c8.tar.gz xrdp-proprietary-42de9947412386c61b173216c04496255fe328c8.zip |
Merge pull request #122 from speidy/devel
Compilation fix for pulse source module + Merge some fixes from master branch
Diffstat (limited to 'sesman/chansrv/pulse/module-xrdp-source.c')
-rw-r--r-- | sesman/chansrv/pulse/module-xrdp-source.c | 10 |
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; } |