From 4352f9feca37f1294c75e4bf2326e978f0e659df Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 18 Dec 2011 20:02:31 +0100 Subject: vo_gl: add "backend" suboption to allow selecting the GUI backend The "backend" suboption allows selecting the GUI backend used by vo_gl. Normally, it's auto-selected, but sometimes it's desireable to explicitly select it. Remove the gl_sdl VO. This can now be done by using: --vo=gl:backend=sdl This is based on svn commit 34438, and tries to be compatible with it. The undocumented numeric backend names serve this purpose. (They are undocumented because names are preferred.) --- libvo/gl_common.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libvo/gl_common.h') diff --git a/libvo/gl_common.h b/libvo/gl_common.h index 8563edac7e..d0b447fab7 100644 --- a/libvo/gl_common.h +++ b/libvo/gl_common.h @@ -399,6 +399,8 @@ typedef struct MPGLContext { void (*ontop)(struct vo *vo); } MPGLContext; +int mpgl_find_backend(const char *name); + MPGLContext *init_mpglcontext(enum MPGLType type, struct vo *vo); void uninit_mpglcontext(MPGLContext *ctx); -- cgit v1.2.3