diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-09-16 22:07:41 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-09-16 22:07:41 +0000 |
commit | daf3938a9e5b50c3e52c0ae889e4d02b548fa78a (patch) | |
tree | 8085694bc8fa63ecb9f6e02288ce961ff7cf5d04 /polyp/autoload.c | |
parent | f9e2058820c2a51994708ad11d1ed8e09b12b8b1 (diff) |
add support for subscribing to autoload table changes
fix module-combine so that the sample rate of at least one streams is not changed from the original
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@206 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/autoload.c')
-rw-r--r-- | polyp/autoload.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/polyp/autoload.c b/polyp/autoload.c index 344d26e2..12cd1f91 100644 --- a/polyp/autoload.c +++ b/polyp/autoload.c @@ -34,9 +34,11 @@ #include "sound-file.h" #include "log.h" #include "scache.h" +#include "subscribe.h" static void entry_free(struct pa_autoload_entry *e) { assert(e); + pa_subscription_post(e->core, PA_SUBSCRIPTION_EVENT_AUTOLOAD|PA_SUBSCRIPTION_EVENT_REMOVE, PA_INVALID_INDEX); pa_xfree(e->name); pa_xfree(e->module); pa_xfree(e->argument); @@ -51,6 +53,7 @@ static struct pa_autoload_entry* entry_new(struct pa_core *c, const char *name) return NULL; e = pa_xmalloc(sizeof(struct pa_autoload_entry)); + e->core = c; e->name = pa_xstrdup(name); e->module = e->argument = NULL; e->in_action = 0; @@ -61,6 +64,8 @@ static struct pa_autoload_entry* entry_new(struct pa_core *c, const char *name) pa_hashmap_put(c->autoload_hashmap, e->name, e); + pa_subscription_post(c, PA_SUBSCRIPTION_EVENT_AUTOLOAD|PA_SUBSCRIPTION_EVENT_NEW, PA_INVALID_INDEX); + return e; } |