From 20635453048bdf7f99d9fb5fbe53178ff386f74c Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 22 Dec 2015 23:24:47 +0000 Subject: [PATCH 1/1] audiod: Force status dump on slot changes. This makes para_gui report such changes immediately. Without these extra dumps, it may take up to 500ms for the stat client to notice. --- audiod.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/audiod.c b/audiod.c index 94afa1cf..7be40de0 100644 --- a/audiod.c +++ b/audiod.c @@ -1229,10 +1229,15 @@ static void close_slot(int slot_num) static void close_unused_slots(void) { int i; + bool dump = false; FOR_EACH_SLOT(i) - if (must_close_slot(i)) + if (must_close_slot(i)) { close_slot(i); + dump = true; + } + if (dump) + audiod_status_dump(true); } /* @@ -1277,6 +1282,7 @@ static void start_stop_decoders(void) open_writers(sl); activate_grab_clients(&sched); btr_log_tree(sl->receiver_node->btrn, LL_NOTICE); + audiod_status_dump(true); } static void status_pre_select(struct sched *s, void *context) -- 2.39.2