diff options
author | Dudemanguy <random342@airmail.cc> | 2023-10-15 10:28:40 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-10-25 16:16:37 +0000 |
commit | b626f3ba8367d88e3526efa49961f91af4a6620c (patch) | |
tree | dcb99a87a4c0a0303d275ba05e78a61d37b1651b /options | |
parent | 9924102c6685495ecbe4abdb6ca1a38c27919317 (diff) | |
download | mpv-b626f3ba8367d88e3526efa49961f91af4a6620c.tar.bz2 mpv-b626f3ba8367d88e3526efa49961f91af4a6620c.tar.xz |
options: rename --sub-ass-force-style to --sub-ass-style-overrides
This option has exactly the same semantics are other mpv options that
override a particular thing with something from the user. So instead of
the "force-style" name, use "-overrides" which is more consistent.
The plural form is used since it's a list option.
Diffstat (limited to 'options')
-rw-r--r-- | options/options.c | 3 | ||||
-rw-r--r-- | options/options.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/options/options.c b/options/options.c index fdf787cbf6..25dc84ad32 100644 --- a/options/options.c +++ b/options/options.c @@ -305,7 +305,7 @@ const struct m_sub_options mp_subtitle_sub_opts = { {"no", 0}, {"basic", 1}, {"full", 2}, {"force-601", 3})}, {"sub-ass-vsfilter-blur-compat", OPT_BOOL(ass_vsfilter_blur_compat)}, {"embeddedfonts", OPT_BOOL(use_embedded_fonts), .flags = UPDATE_SUB_HARD}, - {"sub-ass-force-style", OPT_STRINGLIST(ass_force_style_list), + {"sub-ass-style-overrides", OPT_STRINGLIST(ass_style_override_list), .flags = UPDATE_SUB_HARD}, {"sub-ass-styles", OPT_STRING(ass_styles_file), .flags = M_OPT_FILE | UPDATE_SUB_HARD}, @@ -323,6 +323,7 @@ const struct m_sub_options mp_subtitle_sub_opts = { {"sub-clear-on-seek", OPT_BOOL(sub_clear_on_seek)}, {"teletext-page", OPT_INT(teletext_page), M_RANGE(1, 999)}, {"sub-past-video-end", OPT_BOOL(sub_past_video_end)}, + {"sub-ass-force-style", OPT_REPLACED("sub-ass-style-overrides")}, {0} }, .size = sizeof(OPT_BASE_STRUCT), diff --git a/options/options.h b/options/options.h index 0dcbe0adef..3c1e947622 100644 --- a/options/options.h +++ b/options/options.h @@ -108,7 +108,7 @@ struct mp_subtitle_opts { int ass_vsfilter_color_compat; bool ass_vsfilter_blur_compat; bool use_embedded_fonts; - char **ass_force_style_list; + char **ass_style_override_list; char *ass_styles_file; int ass_style_override; int ass_hinting; |