summaryrefslogtreecommitdiffstats
path: root/video/out/vo_opengl.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-07-22 01:21:39 +0200
committerwm4 <wm4@nowhere>2013-07-22 01:50:22 +0200
commit1ff35c3a20a3e0d8444eb1f6f1632db37255d761 (patch)
tree1449da2a0d39fa236f6a4e0f4c55239b6f02765a /video/out/vo_opengl.c
parent5e0ee41617387118deb463663176fb4d52a0a6e3 (diff)
downloadmpv-1ff35c3a20a3e0d8444eb1f6f1632db37255d761.tar.bz2
mpv-1ff35c3a20a3e0d8444eb1f6f1632db37255d761.tar.xz
vo_opengl_old: use new option API
Diffstat (limited to 'video/out/vo_opengl.c')
-rw-r--r--video/out/vo_opengl.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/video/out/vo_opengl.c b/video/out/vo_opengl.c
index 13213da5c4..6e523a6b8c 100644
--- a/video/out/vo_opengl.c
+++ b/video/out/vo_opengl.c
@@ -343,20 +343,12 @@ err_out:
return -1;
}
-static int validate_backend_opt(const m_option_t *opt, struct bstr name,
- struct bstr param)
-{
- char s[20];
- snprintf(s, sizeof(s), "%.*s", BSTR_P(param));
- return mpgl_find_backend(s) >= -1 ? 1 : M_OPT_INVALID;
-}
-
#define OPT_BASE_STRUCT struct gl_priv
const struct m_option options[] = {
OPT_FLAG("glfinish", use_glFinish, 0),
OPT_INT("swapinterval", swap_interval, 0, OPTDEF_INT(1)),
OPT_FLAG("debug", use_gl_debug, 0),
- OPT_STRING_VALIDATE("backend", backend, 0, validate_backend_opt),
+ OPT_STRING_VALIDATE("backend", backend, 0, mpgl_validate_backend_opt),
OPT_FLAG("sw", allow_sw, 0),
OPT_SUBSTRUCT("", renderer_opts, gl_video_conf, 0),