mirror of https://github.com/mpv-player/mpv
wayland: use wl_list_empty instead of wl_list_length
This commit is contained in:
parent
9d7d861202
commit
6c59b0272b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue