mirror of https://github.com/mpv-player/mpv
ass_mp.c: remove code duplication
mp_ass_configure() (first time setup for subtitle options) and mp_ass_reload_options() (update options) duplicated the code for setting some options. There is no reason why they shouldn't use the same code.
This commit is contained in:
parent
8dc0743571
commit
40300e3c0c
|
@ -248,8 +248,7 @@ void mp_ass_configure(ASS_Renderer *priv, struct MPOpts *opts, int w, int h,
|
|||
int hinting;
|
||||
ass_set_frame_size(priv, w, h);
|
||||
ass_set_margins(priv, opts->ass_top_margin, opts->ass_bottom_margin, 0, 0);
|
||||
ass_set_use_margins(priv, opts->ass_use_margins);
|
||||
ass_set_font_scale(priv, opts->ass_font_scale);
|
||||
mp_ass_reload_options(priv, opts);
|
||||
if (!unscaled && (opts->ass_hinting & 4))
|
||||
hinting = 0;
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue