summaryrefslogtreecommitdiffstats
path: root/tracker.c
diff options
context:
space:
mode:
authorManuel Bachmann <manuel.bachmann@iot.bzh>2016-06-13 10:11:28 +0200
committerYannick Gicquel <yannick.gicquel@iot.bzh>2016-10-11 17:09:07 +0200
commit6fc3e02df9de8347eb76fdfd26ed781686d37b6c (patch)
treea291b1fa88b957941e9abd3baee01df26ebf4177 /tracker.c
parentd126c05ba201b0fd6daabf7c03d05da3db1b2957 (diff)
Clean up node status after sink_input unlink
We now unload all modules associated with a node when it disappears. Change-Id: I6d2055d546c9cc1b1967f85c973eafcc216bc91f Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
Diffstat (limited to 'tracker.c')
-rw-r--r--tracker.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tracker.c b/tracker.c
index cb6369a..95c5f0a 100644
--- a/tracker.c
+++ b/tracker.c
@@ -346,6 +346,12 @@ static pa_hook_result_t sink_input_unlink (void *hook_data,
void *call_data,
void *slot_data)
{
+ /* called by each client when stopping sound */
+ pa_sink_input *sinp = (pa_sink_input *)call_data;
+ struct userdata *u = (struct userdata *)slot_data;
+
+ pa_discover_remove_sink_input (u, sinp);
+
return PA_HOOK_OK;
}