summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/sink.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-09-24 21:47:22 +0000
committerLennart Poettering <lennart@poettering.net>2007-09-24 21:47:22 +0000
commite37fa011ac18742303c351aee1cb2f6739e04b82 (patch)
tree7ee5e496a121b867681a5b37610489fee7ead6d5 /src/pulsecore/sink.c
parentef020c6e8918c0481451e5640e95faf56ed453a5 (diff)
add hooks for name/description changes of sinks/source and streams
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1897 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulsecore/sink.c')
-rw-r--r--src/pulsecore/sink.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pulsecore/sink.c b/src/pulsecore/sink.c
index 733a9d9e..46f890de 100644
--- a/src/pulsecore/sink.c
+++ b/src/pulsecore/sink.c
@@ -764,7 +764,10 @@ void pa_sink_set_description(pa_sink *s, const char *description) {
pa_xfree(n);
}
- pa_subscription_post(s->core, PA_SUBSCRIPTION_EVENT_SINK|PA_SUBSCRIPTION_EVENT_CHANGE, s->index);
+ if (PA_SINK_LINKED(s->state)) {
+ pa_subscription_post(s->core, PA_SUBSCRIPTION_EVENT_SINK|PA_SUBSCRIPTION_EVENT_CHANGE, s->index);
+ pa_hook_fire(&s->core->hooks[PA_CORE_HOOK_SINK_DESCRIPTION_CHANGED], s);
+ }
}
unsigned pa_sink_linked_by(pa_sink *s) {