allow polypaudio to startup without any enabled module
authorLennart Poettering <lennart@poettering.net>
Thu, 16 Feb 2006 01:16:02 +0000 (01:16 +0000)
committerLennart Poettering <lennart@poettering.net>
Thu, 16 Feb 2006 01:16:02 +0000 (01:16 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@484 fefdeb5f-60dc-0310-8127-8f9354f1896f

polyp/main.c

index c984e28e0cfffe134f2b051ed25d19e974e65897..b5aac85128da224e9afc26719082e3bf13282c62 100644 (file)
@@ -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 {