From 40300e3c0c41621bf0a73ff484c87603305ad7a1 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 6 Mar 2012 20:01:40 +0100 Subject: 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. --- sub/ass_mp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sub') diff --git a/sub/ass_mp.c b/sub/ass_mp.c index 8af3698a47..e47ceb8aec 100644 --- a/sub/ass_mp.c +++ b/sub/ass_mp.c @@ -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 -- cgit v1.2.3