mirror of https://github.com/mpv-player/mpv
context_drm_egl: skip page flip wait on error
Any error in page flipping caused mpv to wait indefinitely for a page flip callback.
This commit is contained in:
parent
4081f45501
commit
5f6e8f856c
|
@ -545,7 +545,7 @@ static void queue_flip(struct ra_ctx *ctx, struct gbm_frame *frame)
|
|||
talloc_free(data);
|
||||
}
|
||||
}
|
||||
p->waiting_for_flip = true;
|
||||
p->waiting_for_flip = !ret;
|
||||
|
||||
if (atomic_ctx) {
|
||||
drmModeAtomicFree(atomic_ctx->request);
|
||||
|
|
Loading…
Reference in New Issue