context_drm_egl: Don't get stuck forever if drmHandleEvent fails

This commit is contained in:
Anton Kindestam committed 2019-09-22 22:39:10 +02:00
1 parent cbff8a5862
commit b6def652a4
1 file changed
+3 -1
+3 -1
View File
@@ -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;
}
}
}
}