diff options
author | wm4 <wm4@mplayer2.org> | 2011-12-18 20:02:31 +0100 |
---|---|---|
committer | wm4 <wm4@mplayer2.org> | 2012-02-09 04:58:41 +0100 |
commit | 4352f9feca37f1294c75e4bf2326e978f0e659df (patch) | |
tree | d06d9057bd01e259ff436c8cab4776729d942585 /libvo/gl_common.h | |
parent | 93ae55c2c34357b892bff36d678a5d46c22d5a0c (diff) | |
download | mpv-4352f9feca37f1294c75e4bf2326e978f0e659df.tar.bz2 mpv-4352f9feca37f1294c75e4bf2326e978f0e659df.tar.xz |
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.)
Diffstat (limited to 'libvo/gl_common.h')
-rw-r--r-- | libvo/gl_common.h | 2 |
1 files changed, 2 insertions, 0 deletions
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); |