diff options
author | Ho Ming Shun <cyph1984@gmail.com> | 2022-06-30 13:51:48 +0800 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2022-08-11 09:05:44 +0200 |
commit | 5f6e8f856c6038264c7774babd96bde191d398d2 (patch) | |
tree | 61827e263f188d45de67423179c054e2a0f45db1 | |
parent | 4081f455016bcbb554cfa86809e361e8e2e414c4 (diff) | |
download | mpv-5f6e8f856c6038264c7774babd96bde191d398d2.tar.bz2 mpv-5f6e8f856c6038264c7774babd96bde191d398d2.tar.xz |
context_drm_egl: skip page flip wait on error
Any error in page flipping caused mpv to wait indefinitely for a page
flip callback.
-rw-r--r-- | video/out/opengl/context_drm_egl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/opengl/context_drm_egl.c b/video/out/opengl/context_drm_egl.c index 34d6970c95..7ca102a1d8 100644 --- a/video/out/opengl/context_drm_egl.c +++ b/video/out/opengl/context_drm_egl.c @@ -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); |