From 3de129f3ac8dd6cf51178b266837db4d5e4a1215 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Mon, 4 Oct 2010 11:48:43 +0100 Subject: introspect: Include whether a stream is corked in the info callback. --- src/pulsecore/sink-input.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/pulsecore/sink-input.c') diff --git a/src/pulsecore/sink-input.c b/src/pulsecore/sink-input.c index 190e2d01..fe840b88 100644 --- a/src/pulsecore/sink-input.c +++ b/src/pulsecore/sink-input.c @@ -470,6 +470,9 @@ static void sink_input_set_state(pa_sink_input *i, pa_sink_input_state_t state) for (ssync = i->sync_next; ssync; ssync = ssync->sync_next) pa_hook_fire(&i->core->hooks[PA_CORE_HOOK_SINK_INPUT_STATE_CHANGED], ssync); + + if (PA_SINK_INPUT_IS_LINKED(state)) + pa_subscription_post(i->core, PA_SUBSCRIPTION_EVENT_SINK_INPUT|PA_SUBSCRIPTION_EVENT_CHANGE, i->index); } pa_sink_update_status(i->sink); -- cgit