summaryrefslogtreecommitdiffstats
path: root/sub/osd.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-08-12 17:28:08 +0200
committerwm4 <wm4@nowhere>2020-08-12 17:28:25 +0200
commitcda8f1613ff307a9e0b5528743f3e941b05dcee7 (patch)
tree248182c3e4207b11abd11c39488303c76f4e4c32 /sub/osd.c
parent720bcd79d0304dd82e607efa95d421f402c8a3dd (diff)
downloadmpv-cda8f1613ff307a9e0b5528743f3e941b05dcee7.tar.bz2
mpv-cda8f1613ff307a9e0b5528743f3e941b05dcee7.tar.xz
sd_ass: force full reinit if certain options change at runtime
Options like --sub-ass-force-style and others could not be changed at runtime (the changes didn't take any effect). Fix this by using the brutal approach, and completely reinit the subtitle state when this happens. Maybe a bit clunky, but for now I'd rather not put more effort into this. Fixes: #7689
Diffstat (limited to 'sub/osd.c')
-rw-r--r--sub/osd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sub/osd.c b/sub/osd.c
index c45668c3f4..de63befe7f 100644
--- a/sub/osd.c
+++ b/sub/osd.c
@@ -66,7 +66,7 @@ static const m_option_t style_opts[] = {
{"justify", OPT_CHOICE(justify,
{"auto", 0}, {"left", 1}, {"center", 2}, {"right", 3})},
{"font-provider", OPT_CHOICE(font_provider,
- {"auto", 0}, {"none", 1}, {"fontconfig", 2})},
+ {"auto", 0}, {"none", 1}, {"fontconfig", 2}), .flags = UPDATE_SUB_HARD},
{0}
};