From 65f2c6c71676e4359d313ecf27744e525b662134 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 31 Dec 2014 19:12:44 +0100 Subject: vo_opengl_cb: pass context directly This is simpler than setting the context after VO creation, which requires the code to check for the context on every entrypoint. --- video/out/vo.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'video/out/vo.h') diff --git a/video/out/vo.h b/video/out/vo.h index 60982c9d65..3d4d654738 100644 --- a/video/out/vo.h +++ b/video/out/vo.h @@ -105,8 +105,6 @@ enum mp_voctrl { VOCTRL_GET_RECENT_FLIP_TIME, // int64_t* (using mp_time_us()) VOCTRL_GET_PREF_DEINT, // int* - - VOCTRL_SET_LIBMPV_OPENGL_CB_CONTEXT,// struct mpv_opengl_cb_context* }; // VOCTRL_SET_EQUALIZER @@ -169,6 +167,7 @@ struct vo_extra { struct input_ctx *input_ctx; struct osd_state *osd; struct encode_lavc_context *encode_lavc_ctx; + struct mpv_opengl_cb_context *opengl_cb_context; }; struct vo_driver { -- cgit v1.2.3