diff options
author | Dudemanguy <random342@airmail.cc> | 2023-10-20 11:13:43 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-11-05 15:45:43 +0000 |
commit | 90170c1100cc9e085b13238e6e05177be1e1b30b (patch) | |
tree | 1b6d5507499a5153a75029162ee6db50208c2810 /options/options.c | |
parent | 6f8d98f812ad225113d7d58034bf3c02f9fc524b (diff) | |
download | mpv-90170c1100cc9e085b13238e6e05177be1e1b30b.tar.bz2 mpv-90170c1100cc9e085b13238e6e05177be1e1b30b.tar.xz |
options: add UPDATE_SUB_HARD flag to sub-ass-override
The other options that have to do with ass styles also uses this flag.
It's needed since we have to destroy the ass objects and reinit them.
It's a bit incomplete since it will technically only properly work when
paused (while playing, the current subtitle gets discarded). That fix is
in the next commit.
Diffstat (limited to 'options/options.c')
-rw-r--r-- | options/options.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/options/options.c b/options/options.c index c98930e6c6..8597d39d7a 100644 --- a/options/options.c +++ b/options/options.c @@ -315,7 +315,8 @@ const struct m_sub_options mp_subtitle_sub_opts = { {"simple", 0}, {"complex", 1})}, {"sub-ass-justify", OPT_BOOL(ass_justify)}, {"sub-ass-override", OPT_CHOICE(ass_style_override, - {"no", 0}, {"yes", 1}, {"force", 3}, {"scale", 4}, {"strip", 5})}, + {"no", 0}, {"yes", 1}, {"force", 3}, {"scale", 4}, {"strip", 5}), + .flags = UPDATE_SUB_HARD}, {"sub-scale-by-window", OPT_BOOL(sub_scale_by_window)}, {"sub-scale-with-window", OPT_BOOL(sub_scale_with_window)}, {"sub-ass-scale-with-window", OPT_BOOL(ass_scale_with_window)}, |