From 275e23a34d91c7bf721bcfcf5049652a8a10c3a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Sat, 19 Feb 2022 19:38:08 +0100 Subject: [PATCH] spa: support: loop: print previous mask when updating Print the previous event mask in `loop_update_io()` as well as the new one. --- spa/plugins/support/loop.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spa/plugins/support/loop.c b/spa/plugins/support/loop.c index fd914a09d..c1c05cb85 100644 --- a/spa/plugins/support/loop.c +++ b/spa/plugins/support/loop.c @@ -443,8 +443,10 @@ static int loop_update_io(void *object, struct spa_source *source, uint32_t mask struct impl *impl = object; struct source_impl *s = SPA_CONTAINER_OF(source, struct source_impl, source); int res; + + spa_log_trace(impl->log, "%p: update %08x -> %08x", s, source->mask, mask); source->mask = mask; - spa_log_trace(impl->log, "%p: update %08x", s, mask); + if (s->fallback) res = spa_loop_utils_enable_idle(&impl->utils, s->fallback, mask & (SPA_IO_IN | SPA_IO_OUT) ? true : false);