From b6def652a4b0db0f3514a44fec08f4be66187f3b Mon Sep 17 00:00:00 2001 From: Anton Kindestam Date: Thu, 18 Apr 2019 09:59:46 +0200 Subject: context_drm_egl: Don't get stuck forever if drmHandleEvent fails --- video/out/opengl/context_drm_egl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'video/out') diff --git a/video/out/opengl/context_drm_egl.c b/video/out/opengl/context_drm_egl.c index fe296d2592..dbcd1452c0 100644 --- a/video/out/opengl/context_drm_egl.c +++ b/video/out/opengl/context_drm_egl.c @@ -501,8 +501,10 @@ static void wait_on_flip(struct ra_ctx *ctx) poll(fds, 1, timeout_ms); if (fds[0].revents & POLLIN) { const int ret = drmHandleEvent(p->kms->fd, &p->ev); - if (ret != 0) + if (ret != 0) { MP_ERR(ctx->vo, "drmHandleEvent failed: %i\n", ret); + return; + } } } } -- cgit v1.2.3