summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-03-12 14:10:37 +0100
committerwm4 <wm4@nowhere>2020-03-13 16:50:27 +0100
commitd3ad4e23088da95697ab2ec385267c06293c4515 (patch)
treed7b323780133d01cc93bec60e51700337f8bda67 /video/out
parent3006c4ba5dd119160bdcf1d650c66197a44de602 (diff)
downloadmpv-d3ad4e23088da95697ab2ec385267c06293c4515.tar.bz2
mpv-d3ad4e23088da95697ab2ec385267c06293c4515.tar.xz
options: remove intpair option type
This was mostly unused, and has certain problems. Just get rid of it. It was still used in CDDA (--cdda-span) and a debug option for OpenGL (--opengl-check-pattern). Replace both of these with 2 options, where each sets the start/end values of the former span. Both were undocumented somehow (normally we require all options to be documented), so I'm not caring about compatibility, and not bothering to add it to the API changelog.
Diffstat (limited to 'video/out')
-rw-r--r--video/out/opengl/context.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/opengl/context.c b/video/out/opengl/context.c
index d9b3925983..07fa183acc 100644
--- a/video/out/opengl/context.c
+++ b/video/out/opengl/context.c
@@ -62,7 +62,8 @@ const struct m_sub_options opengl_conf = {
OPT_FLAG("opengl-glfinish", use_glfinish, 0),
OPT_FLAG("opengl-waitvsync", waitvsync, 0),
OPT_INT("opengl-swapinterval", swapinterval, 0),
- OPT_INTPAIR("opengl-check-pattern", vsync_pattern, 0),
+ OPT_INT("opengl-check-pattern-a", vsync_pattern[0], 0),
+ OPT_INT("opengl-check-pattern-b", vsync_pattern[1], 0),
OPT_INT("opengl-restrict", restrict_version, 0),
OPT_CHOICE("opengl-es", gles_mode, 0,
({"auto", GLES_AUTO}, {"yes", GLES_YES}, {"no", GLES_NO})),