From 6c59b0272b93e2ed4fb3842a0135e1b5e2c907f3 Mon Sep 17 00:00:00 2001 From: llyyr Date: Fri, 5 Jul 2024 22:30:40 +0530 Subject: [PATCH] wayland: use wl_list_empty instead of wl_list_length --- video/out/wayland_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index 3d9550e415..82bed23c94 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -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;