mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
introspect: Include whether a stream is corked in the info callback.
This commit is contained in:
parent
5e442f4e0e
commit
3de129f3ac
7 changed files with 31 additions and 6 deletions
|
|
@ -291,9 +291,13 @@ static void source_output_set_state(pa_source_output *o, pa_source_output_state_
|
|||
update_n_corked(o, state);
|
||||
o->state = state;
|
||||
|
||||
if (state != PA_SOURCE_OUTPUT_UNLINKED)
|
||||
if (state != PA_SOURCE_OUTPUT_UNLINKED) {
|
||||
pa_hook_fire(&o->core->hooks[PA_CORE_HOOK_SOURCE_OUTPUT_STATE_CHANGED], o);
|
||||
|
||||
if (PA_SOURCE_OUTPUT_IS_LINKED(state))
|
||||
pa_subscription_post(o->core, PA_SUBSCRIPTION_EVENT_SOURCE_OUTPUT|PA_SUBSCRIPTION_EVENT_CHANGE, o->index);
|
||||
}
|
||||
|
||||
pa_source_update_status(o->source);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue