0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-19 19:42:24 +02:00

wayland: use wl_list_empty instead of wl_list_length

This commit is contained in:
llyyr 2024-07-05 22:30:40 +05:30 committed by Dudemanguy
parent 9d7d861202
commit 6c59b0272b

View File

@ -2580,7 +2580,7 @@ bool vo_wayland_init(struct vo *vo)
goto err;
}
if (!wl_list_length(&wl->output_list)) {
if (wl_list_empty(&wl->output_list)) {
MP_FATAL(wl, "No outputs found or compositor doesn't support %s (ver. 2)\n",
wl_output_interface.name);
goto err;