From 8941fc2866c304d306823cf3ef7a852cef775f8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Mon, 21 Feb 2022 17:28:43 +0100 Subject: [PATCH] spa: support: loop: get array size using macro --- spa/plugins/support/loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/support/loop.c b/spa/plugins/support/loop.c index a58b7a830..fd914a09d 100644 --- a/spa/plugins/support/loop.c +++ b/spa/plugins/support/loop.c @@ -346,7 +346,7 @@ static int loop_iterate(void *object, int timeout) spa_loop_control_hook_before(&impl->hooks_list); - nfds = spa_system_pollfd_wait(impl->system, impl->poll_fd, ep, MAX_EP, timeout); + nfds = spa_system_pollfd_wait(impl->system, impl->poll_fd, ep, SPA_N_ELEMENTS(ep), timeout); spa_loop_control_hook_after(&impl->hooks_list);