diff options
author | Juho Hämäläinen <juho.hamalainen@tieto.com> | 2015-03-19 13:50:49 +0200 |
---|---|---|
committer | David Henningsson <david.henningsson@canonical.com> | 2015-04-02 16:09:47 +0200 |
commit | 297fdb5c2586a6bcd1274b7559e59b2cd55071ff (patch) | |
tree | e74a7b5acbf0970aba73f63da04bce64d730edf1 /src | |
parent | 88d672449370e83825797188abc1c9199c9c0281 (diff) |
namereg: Fire hooks for default sink and source changes
Diffstat (limited to 'src')
-rw-r--r-- | src/pulsecore/namereg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pulsecore/namereg.c b/src/pulsecore/namereg.c index b2320c06d..47bfc087f 100644 --- a/src/pulsecore/namereg.c +++ b/src/pulsecore/namereg.c @@ -257,6 +257,7 @@ pa_sink* pa_namereg_set_default_sink(pa_core*c, pa_sink *s) { if (c->default_sink != s) { c->default_sink = s; + pa_hook_fire(&c->hooks[PA_CORE_HOOK_DEFAULT_SINK_CHANGED], c->default_sink); pa_subscription_post(c, PA_SUBSCRIPTION_EVENT_SERVER|PA_SUBSCRIPTION_EVENT_CHANGE, PA_INVALID_INDEX); } @@ -271,6 +272,7 @@ pa_source* pa_namereg_set_default_source(pa_core*c, pa_source *s) { if (c->default_source != s) { c->default_source = s; + pa_hook_fire(&c->hooks[PA_CORE_HOOK_DEFAULT_SOURCE_CHANGED], c->default_source); pa_subscription_post(c, PA_SUBSCRIPTION_EVENT_SERVER|PA_SUBSCRIPTION_EVENT_CHANGE, PA_INVALID_INDEX); } |