summaryrefslogtreecommitdiffstats
path: root/polyp/core.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-09-14 23:08:39 +0000
committerLennart Poettering <lennart@poettering.net>2004-09-14 23:08:39 +0000
commit935826f4f318a89a0a570f766deb54808a4f9683 (patch)
tree3e2cf7ec1386fa5711367b59bb1aaa9d309a86fc /polyp/core.c
parent6e019795bff589ef0a867772975e34da78fffefb (diff)
make module-combine autoloadable
clean up cli language introduce lazy sample cache git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@201 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/core.c')
-rw-r--r--polyp/core.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/polyp/core.c b/polyp/core.c
index 0b0bbb56..80abe9fe 100644
--- a/polyp/core.c
+++ b/polyp/core.c
@@ -61,8 +61,9 @@ struct pa_core* pa_core_new(struct pa_mainloop_api *m) {
c->default_sample_spec.rate = 44100;
c->default_sample_spec.channels = 2;
- c->auto_unload_event = NULL;
- c->defer_unload_event = NULL;
+ c->module_auto_unload_event = NULL;
+ c->module_defer_unload_event = NULL;
+ c->scache_auto_unload_event = NULL;
c->subscription_defer_event = NULL;
c->subscription_event_queue = NULL;
@@ -76,6 +77,7 @@ struct pa_core* pa_core_new(struct pa_mainloop_api *m) {
c->exit_idle_time = -1;
c->module_idle_time = 20;
+ c->scache_idle_time = 20;
pa_check_for_sigpipe();
@@ -108,11 +110,9 @@ void pa_core_free(struct pa_core *c) {
pa_autoload_free(c);
pa_subscription_free_all(c);
- if (c->quit_event) {
+ if (c->quit_event)
c->mainloop->time_free(c->quit_event);
- c->quit_event = NULL;
- }
-
+
pa_xfree(c->default_source_name);
pa_xfree(c->default_sink_name);