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
1 changed files with 1 additions and 1 deletions

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;