Commit d51c133d authored by Thomas Guillem's avatar Thomas Guillem

gl: add add_glconv() define

Common module option to choose the OpenGL converter.
parent 9367f189
......@@ -42,10 +42,6 @@ static void Close (vlc_object_t *);
#define PROVIDER_LONGTEXT N_( \
"Extension through which to use the Open Graphics Library (OpenGL).")
#define GLCONV_TEXT N_("Open GL/GLES hardware converter")
#define GLCONV_LONGTEXT N_( \
"Force a \"glconv\" module.")
vlc_module_begin ()
#if defined (USE_OPENGL_ES2)
# define API VLC_OPENGL_ES2
......@@ -72,8 +68,7 @@ vlc_module_begin ()
add_module ("gl", "opengl", NULL,
GL_TEXT, PROVIDER_LONGTEXT, true)
#endif
add_module ("glconv", NULL, NULL,
GLCONV_TEXT, GLCONV_LONGTEXT, true)
add_glconv ()
vlc_module_end ()
struct vout_display_sys_t
......
......@@ -58,6 +58,11 @@
# endif
#endif
#define GLCONV_TEXT N_("Open GL/GLES hardware converter")
#define GLCONV_LONGTEXT N_( \
"Force a \"glconv\" module.")
#define add_glconv() add_module ("glconv", NULL, NULL, GLCONV_TEXT, GLCONV_LONGTEXT, true)
static const vlc_fourcc_t gl_subpicture_chromas[] = {
VLC_CODEC_RGBA,
0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment