[pulseaudio-commits] r2049 - /trunk/src/pulsecore/module.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Tue Nov 13 09:35:49 PST 2007


Author: lennart
Date: Tue Nov 13 18:35:48 2007
New Revision: 2049

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2049&root=pulseaudio&view=rev
Log:
fix loading of load-once modules if no other modules was loaded before

Modified:
    trunk/src/pulsecore/module.c

Modified: trunk/src/pulsecore/module.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/module.c?rev=2049&root=pulseaudio&r1=2048&r2=2049&view=diff
==============================================================================
--- trunk/src/pulsecore/module.c (original)
+++ trunk/src/pulsecore/module.c Tue Nov 13 18:35:48 2007
@@ -86,7 +86,7 @@
 
     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 */




More information about the pulseaudio-commits mailing list