summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-11-13 17:35:48 +0000
committerLennart Poettering <lennart@poettering.net>2007-11-13 17:35:48 +0000
commitf7528825257d5d4b056268da3c82181f520a8ff6 (patch)
treea620fa0a1829386ea3d209f461c04b36b9d4412e
parent5054f3623ff82ab0c263e15c47779b0caa841b29 (diff)
fix loading of load-once modules if no other modules was loaded before
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2049 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r--src/pulsecore/module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/module.c b/src/pulsecore/module.c
index e1680de5..ae140ff4 100644
--- a/src/pulsecore/module.c
+++ b/src/pulsecore/module.c
@@ -86,7 +86,7 @@ pa_module* pa_module_load(pa_core *c, const char *name, const char *argument) {
if ((load_once = (pa_bool_t (*)(void)) pa_load_sym(m->dl, name, PA_SYMBOL_LOAD_ONCE))) {
- if (load_once()) {
+ if (load_once() && c->modules) {
pa_module *i;
uint32_t idx;
/* OK, the module only wants to be loaded once, let's make sure it is */