spa: support: loop: get array size using macro

This commit is contained in:
Barnabás Pőcze 2022-02-21 17:28:43 +01:00 committed by Wim Taymans
parent cb8c2d8857
commit 8941fc2866

View file

@ -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);