mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
parent
cb6a919730
commit
82f09b6d8f
4 changed files with 18 additions and 5 deletions
|
|
@ -302,8 +302,6 @@ static void update_n_corked(pa_sink_input *i, pa_sink_input_state_t state) {
|
|||
pa_assert_se(i->sink->n_corked -- >= 1);
|
||||
else if (i->state != PA_SINK_INPUT_CORKED && state == PA_SINK_INPUT_CORKED)
|
||||
i->sink->n_corked++;
|
||||
|
||||
pa_sink_update_status(i->sink);
|
||||
}
|
||||
|
||||
/* Called from main context */
|
||||
|
|
@ -341,6 +339,8 @@ static int sink_input_set_state(pa_sink_input *i, pa_sink_input_state_t state) {
|
|||
pa_hook_fire(&i->sink->core->hooks[PA_CORE_HOOK_SINK_INPUT_STATE_CHANGED], ssync);
|
||||
}
|
||||
|
||||
pa_sink_update_status(i->sink);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -391,6 +391,8 @@ void pa_sink_input_unlink(pa_sink_input *i) {
|
|||
pa_hook_fire(&i->sink->core->hooks[PA_CORE_HOOK_SINK_INPUT_UNLINK_POST], i);
|
||||
}
|
||||
|
||||
pa_sink_update_status(i->sink);
|
||||
|
||||
i->sink = NULL;
|
||||
pa_sink_input_unref(i);
|
||||
}
|
||||
|
|
@ -452,6 +454,8 @@ void pa_sink_input_put(pa_sink_input *i) {
|
|||
|
||||
pa_subscription_post(i->sink->core, PA_SUBSCRIPTION_EVENT_SINK_INPUT|PA_SUBSCRIPTION_EVENT_NEW, i->index);
|
||||
pa_hook_fire(&i->sink->core->hooks[PA_CORE_HOOK_SINK_INPUT_PUT], i);
|
||||
|
||||
pa_sink_update_status(i->sink);
|
||||
}
|
||||
|
||||
/* Called from main context */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue