From 7ad76095417d1022aa4ba3c9a806ebb82004cbc4 Mon Sep 17 00:00:00 2001 From: NRK Date: Tue, 27 Jun 2023 11:50:14 +0600 Subject: wayland: remove erroneous POLLERR usage POLLERR is only returned in `.revents` and is ignored in `.events` --- video/out/wayland_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video') diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index d67f7e46a0..0b2b9c3b21 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -1338,7 +1338,7 @@ static void check_dnd_fd(struct vo_wayland_state *wl) if (wl->dnd_fd == -1) return; - struct pollfd fdp = { wl->dnd_fd, POLLIN | POLLERR | POLLHUP, 0 }; + struct pollfd fdp = { wl->dnd_fd, POLLIN | POLLHUP, 0 }; if (poll(&fdp, 1, 0) <= 0) return; -- cgit v1.2.3