spa: support: loop: print previous mask when updating

Print the previous event mask in `loop_update_io()`
as well as the new one.
This commit is contained in:
Barnabás Pőcze 2022-02-19 19:38:08 +01:00 committed by Wim Taymans
parent 8941fc2866
commit 275e23a34d

View file

@ -443,8 +443,10 @@ static int loop_update_io(void *object, struct spa_source *source, uint32_t mask
struct impl *impl = object; struct impl *impl = object;
struct source_impl *s = SPA_CONTAINER_OF(source, struct source_impl, source); struct source_impl *s = SPA_CONTAINER_OF(source, struct source_impl, source);
int res; int res;
spa_log_trace(impl->log, "%p: update %08x -> %08x", s, source->mask, mask);
source->mask = mask; source->mask = mask;
spa_log_trace(impl->log, "%p: update %08x", s, mask);
if (s->fallback) if (s->fallback)
res = spa_loop_utils_enable_idle(&impl->utils, s->fallback, res = spa_loop_utils_enable_idle(&impl->utils, s->fallback,
mask & (SPA_IO_IN | SPA_IO_OUT) ? true : false); mask & (SPA_IO_IN | SPA_IO_OUT) ? true : false);