diff options
author | wm4 <wm4@nowhere> | 2020-03-12 14:10:37 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-03-13 16:50:27 +0100 |
commit | d3ad4e23088da95697ab2ec385267c06293c4515 (patch) | |
tree | d7b323780133d01cc93bec60e51700337f8bda67 /stream | |
parent | 3006c4ba5dd119160bdcf1d650c66197a44de602 (diff) | |
download | mpv-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 'stream')
-rw-r--r-- | stream/stream_cdda.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/stream/stream_cdda.c b/stream/stream_cdda.c index 090c439987..375f1ebba3 100644 --- a/stream/stream_cdda.c +++ b/stream/stream_cdda.c @@ -83,8 +83,10 @@ const struct m_sub_options stream_cdda_conf = { OPT_INT("toc-bias", toc_bias, 0), OPT_INT("toc-offset", toc_offset, 0), OPT_FLAG("skip", skip, 0), - OPT_INTPAIR("span", span, 0), + OPT_INT("span-a", span[0], 0), + OPT_INT("span-b", span[1], 0), OPT_FLAG("cdtext", cdtext, 0), + OPT_REMOVED("span", "use span-a/span-b"), {0} }, .size = sizeof(struct cdda_params), |