diff options
author | wm4 <wm4@mplayer2.org> | 2012-03-06 20:01:40 +0100 |
---|---|---|
committer | wm4 <wm4@mplayer2.org> | 2012-03-06 20:01:40 +0100 |
commit | 40300e3c0c41621bf0a73ff484c87603305ad7a1 (patch) | |
tree | 1556ee432d4481f33497d3a8abf778b4b505b29b /sub/ass_mp.c | |
parent | 8dc0743571630a08fd40fa88aa09b12b4ce65bf2 (diff) | |
download | mpv-40300e3c0c41621bf0a73ff484c87603305ad7a1.tar.bz2 mpv-40300e3c0c41621bf0a73ff484c87603305ad7a1.tar.xz |
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.
Diffstat (limited to 'sub/ass_mp.c')
-rw-r--r-- | sub/ass_mp.c | 3 |
1 files changed, 1 insertions, 2 deletions
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 |