From cda8f1613ff307a9e0b5528743f3e941b05dcee7 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 12 Aug 2020 17:28:08 +0200 Subject: 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 --- sub/osd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sub/osd.c') 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} }; -- cgit v1.2.3