diff options
author | wm4 <wm4@nowhere> | 2016-07-20 20:52:08 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-07-20 20:52:08 +0200 |
commit | fde784129f4b94b6fa8b2293127c41dc140b7d3a (patch) | |
tree | 423e4cfdd30f54f64de28a7e4957db7b23d764c0 /video/out/opengl/context_x11egl.c | |
parent | bd9c0a10e577e7f839aabc27af6e186a9ba0cdaa (diff) | |
download | mpv-fde784129f4b94b6fa8b2293127c41dc140b7d3a.tar.bz2 mpv-fde784129f4b94b6fa8b2293127c41dc140b7d3a.tar.xz |
x11: stop using vo.event_fd
Instead let it do its own event loop wakeup handling.
Diffstat (limited to 'video/out/opengl/context_x11egl.c')
-rw-r--r-- | video/out/opengl/context_x11egl.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/video/out/opengl/context_x11egl.c b/video/out/opengl/context_x11egl.c index 2e4fd5fa90..aea388b9a2 100644 --- a/video/out/opengl/context_x11egl.c +++ b/video/out/opengl/context_x11egl.c @@ -191,6 +191,16 @@ static void mpegl_swap_buffers(MPGLContext *ctx) eglSwapBuffers(p->egl_display, p->egl_surface); } +static void mpegl_wakeup(struct MPGLContext *ctx) +{ + vo_x11_wakeup(ctx->vo); +} + +static void mpegl_wait_events(struct MPGLContext *ctx, int64_t until_time_us) +{ + vo_x11_wait_events(ctx->vo, until_time_us); +} + const struct mpgl_driver mpgl_driver_x11egl = { .name = "x11egl", .priv_size = sizeof(struct priv), @@ -198,5 +208,7 @@ const struct mpgl_driver mpgl_driver_x11egl = { .reconfig = mpegl_reconfig, .swap_buffers = mpegl_swap_buffers, .control = mpegl_control, + .wakeup = mpegl_wakeup, + .wait_events = mpegl_wait_events, .uninit = mpegl_uninit, }; |