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:
Ho Ming Shun 2022-06-30 13:51:48 +08:00 committed by sfan5
parent 4081f45501
commit 5f6e8f856c
1 changed files with 1 additions and 1 deletions

View File

@ -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);