From 900a9624f9156dd1160b2488536156f9e9e654bd Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 26 May 2019 01:11:54 +0200 Subject: options: remove --chapter Has been deprecated for almost 3 years. Manpage didn't mention the deprecation, but CLI and release notes did. It wouldn't be much effort to keep this option working, but I just don't see the damn point. --start/--end can specify chapters using special syntax, which is equivalent. --- options/options.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'options/options.c') diff --git a/options/options.c b/options/options.c index 65c6d7234e..0d7d0ed51e 100644 --- a/options/options.c +++ b/options/options.c @@ -389,8 +389,6 @@ const m_option_t mp_opts[] = { #if HAVE_DVDNAV OPT_SUBSTRUCT("", dvd_opts, dvd_conf, 0), #endif - OPT_INTPAIR("chapter", chapterrange, 0, .deprecation_message = "instead of " - "--chapter=A-B use --start=#A --end=#B+1"), OPT_CHOICE_OR_INT("edition", edition_id, 0, 0, 8190, ({"auto", -1})), #if HAVE_LIBBLURAY @@ -865,6 +863,7 @@ const m_option_t mp_opts[] = { OPT_REMOVED("heartbeat-cmd", "use Lua scripting instead"), OPT_REMOVED("no-ometadata", "use --no-ocopy-metadata"), OPT_REMOVED("video-stereo-mode", "removed, try --vf=stereo3d"), + OPT_REMOVED("chapter", "use '--start=#123' '--end=#124' (for chapter 123)"), {0} }; @@ -909,7 +908,6 @@ const struct MPOpts mp_default_opts = { .hls_bitrate = INT_MAX, .cache_pause = 1, .cache_pause_wait = 1.0, - .chapterrange = {-1, -1}, .ab_loop = {MP_NOPTS_VALUE, MP_NOPTS_VALUE}, .edition_id = -1, .default_max_pts_correction = -1, -- cgit v1.2.3