summaryrefslogtreecommitdiffstats
path: root/src/daemon
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-05-26 17:59:39 +0000
committerLennart Poettering <lennart@poettering.net>2006-05-26 17:59:39 +0000
commitf5a888504fe70c0106c791e2d97caa3cd5675aef (patch)
treeb1eda32430bec394c18bf93c3b09b28a57900b12 /src/daemon
parentc8e9fa36c5038b88adc684b578d8ec4c52381197 (diff)
disable padsp for the polypaudio daemon itself by defining the __padsp_disabled__ symbol
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@983 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/daemon')
-rw-r--r--src/daemon/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/daemon/main.c b/src/daemon/main.c
index b88f932c..16cc0f5e 100644
--- a/src/daemon/main.c
+++ b/src/daemon/main.c
@@ -79,6 +79,13 @@ int allow_severity = LOG_INFO;
int deny_severity = LOG_WARNING;
#endif
+#ifdef HAVE_OSS
+/* padsp looks for this symbol in the running process and disables
+ * itself if it finds it and it is set to 7 (which is actually a bit
+ * mask). For details see padsp. */
+int __padsp_disabled__ = 7;
+#endif
+
#ifdef OS_IS_WIN32
static void message_cb(pa_mainloop_api*a, pa_time_event*e, PA_GCC_UNUSED const struct timeval *tv, void *userdata) {