sink-input, source-output: Add hooks for mute changes

This commit is contained in:
Tanu Kaskinen 2014-04-15 13:56:16 +03:00
parent 2f6364dfe4
commit c12aa68e02
3 changed files with 4 additions and 0 deletions

View file

@ -1424,6 +1424,7 @@ void pa_sink_input_set_mute(pa_sink_input *i, bool mute, bool save) {
i->mute_changed(i);
pa_subscription_post(i->core, PA_SUBSCRIPTION_EVENT_SINK_INPUT|PA_SUBSCRIPTION_EVENT_CHANGE, i->index);
pa_hook_fire(&i->core->hooks[PA_CORE_HOOK_SINK_INPUT_MUTE_CHANGED], i);
}
/* Called from main thread */