summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/sink-input.c
diff options
context:
space:
mode:
authorColin Guthrie <cguthrie@mandriva.org>2010-10-04 11:48:43 +0100
committerColin Guthrie <cguthrie@mandriva.org>2010-10-06 09:17:01 +0100
commit3de129f3ac8dd6cf51178b266837db4d5e4a1215 (patch)
tree6eb09c59928b9748fdba6dd170c0ed75714e6f61 /src/pulsecore/sink-input.c
parent5e442f4e0e6937c72997a9b9b66bf931b141ed0a (diff)
introspect: Include whether a stream is corked in the info callback.
Diffstat (limited to 'src/pulsecore/sink-input.c')
-rw-r--r--src/pulsecore/sink-input.c3
1 files changed, 3 insertions, 0 deletions
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);