summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/context_x11egl.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/opengl/context_x11egl.c')
-rw-r--r--video/out/opengl/context_x11egl.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/video/out/opengl/context_x11egl.c b/video/out/opengl/context_x11egl.c
index 66aed36bcf..e5885b6106 100644
--- a/video/out/opengl/context_x11egl.c
+++ b/video/out/opengl/context_x11egl.c
@@ -82,10 +82,8 @@ static void mpegl_swap_buffers(struct ra_ctx *ctx)
struct priv *p = ctx->priv;
eglSwapBuffers(p->egl_display, p->egl_surface);
- if (ctx->vo->x11->use_present) {
- vo_x11_present(ctx->vo);
+ if (ctx->vo->x11->use_present)
present_sync_swap(ctx->vo->x11->present);
- }
}
static void mpegl_get_vsync(struct ra_ctx *ctx, struct vo_vsync_info *info)
@@ -210,14 +208,15 @@ static void mpegl_wakeup(struct ra_ctx *ctx)
vo_x11_wakeup(ctx->vo);
}
-static void mpegl_wait_events(struct ra_ctx *ctx, int64_t until_time_us)
+static void mpegl_wait_events(struct ra_ctx *ctx, int64_t until_time_ns)
{
- vo_x11_wait_events(ctx->vo, until_time_us);
+ vo_x11_wait_events(ctx->vo, until_time_ns);
}
const struct ra_ctx_fns ra_ctx_x11_egl = {
.type = "opengl",
.name = "x11egl",
+ .description = "X11/EGL",
.reconfig = mpegl_reconfig,
.control = mpegl_control,
.wakeup = mpegl_wakeup,