summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-02-16 01:16:02 +0000
committerLennart Poettering <lennart@poettering.net>2006-02-16 01:16:02 +0000
commit61fbafcb9495744d7ef82fe7dcb56610c8063888 (patch)
treea88562c2c50455aab3d1b98d4bd326c0c8faf6c6
parenta9950d4ab28a07dcb96d47b4cd44c57be5c825f7 (diff)
allow polypaudio to startup without any enabled module
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@484 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r--polyp/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/polyp/main.c b/polyp/main.c
index c984e28e0..b5aac8512 100644
--- a/polyp/main.c
+++ b/polyp/main.c
@@ -428,7 +428,8 @@ int main(int argc, char *argv[]) {
c->scache_idle_time = conf->scache_idle_time;
c->resample_method = conf->resample_method;
- if (pa_namereg_get(c, c->default_sink_name, PA_NAMEREG_SINK, 1) == NULL) {
+ if (c->default_sink_name &&
+ pa_namereg_get(c, c->default_sink_name, PA_NAMEREG_SINK, 1) == NULL) {
pa_log_error("%s : Fatal error. Default sink name (%s) does not exist in name register.\n", __FILE__, c->default_sink_name);
retval = 1;
} else {