diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-08-11 00:11:12 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-08-11 00:11:12 +0000 |
commit | 3d374e9f678133638e661cadf73d4ef7ddcfe6eb (patch) | |
tree | 58f89c96e8e9fdbf027a407837ce1cd5f7d5e78a /polyp/source-output.c | |
parent | fc618e9f316a1ec2b48a7981db41a121c79f0c27 (diff) |
add subscription subsystem
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@112 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/source-output.c')
-rw-r--r-- | polyp/source-output.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/polyp/source-output.c b/polyp/source-output.c index 07901fa8..c53831c7 100644 --- a/polyp/source-output.c +++ b/polyp/source-output.c @@ -29,6 +29,7 @@ #include "source-output.h" #include "xmalloc.h" +#include "subscribe.h" struct pa_source_output* pa_source_output_new(struct pa_source *s, const char *name, const struct pa_sample_spec *spec) { struct pa_source_output *o; @@ -57,6 +58,8 @@ struct pa_source_output* pa_source_output_new(struct pa_source *s, const char *n assert(r == 0 && o->index != PA_IDXSET_INVALID); r = pa_idxset_put(s->outputs, o, NULL); assert(r == 0); + + pa_subscription_post(s->core, PA_SUBSCRIPTION_EVENT_SOURCE_OUTPUT|PA_SUBSCRIPTION_EVENT_NEW, o->index); return o; } @@ -70,6 +73,8 @@ void pa_source_output_free(struct pa_source_output* o) { if (o->resampler) pa_resampler_free(o->resampler); + + pa_subscription_post(o->source->core, PA_SUBSCRIPTION_EVENT_SOURCE_OUTPUT|PA_SUBSCRIPTION_EVENT_REMOVE, o->index); pa_xfree(o->name); pa_xfree(o); |