From 61fbafcb9495744d7ef82fe7dcb56610c8063888 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 16 Feb 2006 01:16:02 +0000 Subject: allow polypaudio to startup without any enabled module git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@484 fefdeb5f-60dc-0310-8127-8f9354f1896f --- polyp/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'polyp') diff --git a/polyp/main.c b/polyp/main.c index c984e28e..b5aac851 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 { -- cgit