]> code.delx.au - pulseaudio/commitdiff
Follow master change r34dd4a and fix shutdown when --disallow-module-loading=1 is...
authorColin Guthrie <pulse@colin.guthr.ie>
Fri, 22 Aug 2008 08:51:41 +0000 (09:51 +0100)
committerColin Guthrie <pulse@colin.guthr.ie>
Wed, 8 Oct 2008 19:37:43 +0000 (20:37 +0100)
src/modules/module-raop-discover.c
src/modules/module-raop-sink.c

index 38436a387f2065bd1d463d6a5a5040fda1dc8b44..3706d921198f0ef112675c224d4dfce10d53f5bb 100644 (file)
@@ -248,7 +248,7 @@ static void browser_cb(
         struct tunnel *t2;
 
         if ((t2 = pa_hashmap_get(u->tunnels, t))) {
-            pa_module_unload_by_index(u->core, t2->module_index);
+            pa_module_unload_by_index(u->core, t2->module_index, TRUE);
             pa_hashmap_remove(u->tunnels, t2);
             tunnel_free(t2);
         }
@@ -281,7 +281,7 @@ static void client_callback(AvahiClient *c, AvahiClientState state, void *userda
                               browser_cb, u))) {
 
                     pa_log("avahi_service_browser_new() failed: %s", avahi_strerror(avahi_client_errno(c)));
-                    pa_module_unload_request(u->module);
+                    pa_module_unload_request(u->module, TRUE);
                 }
             }
 
@@ -295,7 +295,7 @@ static void client_callback(AvahiClient *c, AvahiClientState state, void *userda
 
                 if (!(u->client = avahi_client_new(u->avahi_poll, AVAHI_CLIENT_NO_FAIL, client_callback, u, &error))) {
                     pa_log("avahi_client_new() failed: %s", avahi_strerror(error));
-                    pa_module_unload_request(u->module);
+                    pa_module_unload_request(u->module, TRUE);
                 }
             }
 
@@ -369,7 +369,7 @@ void pa__done(pa_module*m) {
         struct tunnel *t;
 
         while ((t = pa_hashmap_steal_first(u->tunnels))) {
-            pa_module_unload_by_index(u->core, t->module_index);
+            pa_module_unload_by_index(u->core, t->module_index, TRUE);
             tunnel_free(t);
         }
 
index b90d4e234ab58646a4784a1f3b2f9af37e01c188..62f0a73c01042af6f411e406056f85ed9f3e1967 100644 (file)
@@ -245,7 +245,7 @@ static int sink_process_msg(pa_msgobject *o, int code, void *data, int64_t offse
                 /* Quesiton: is this valid here: or should we do some sort of:
                    return pa_sink_process_msg(PA_MSGOBJECT(u->core), PA_CORE_MESSAGE_UNLOAD_MODULE, u->module, 0, NULL);
                    ?? */
-                pa_module_unload_request(u->module);
+                pa_module_unload_request(u->module, TRUE);
             }
             return 0;
         }