diff options
author | wm4 <wm4@nowhere> | 2015-02-24 16:17:10 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-02-24 16:17:10 +0100 |
commit | dbc5d7b7db70f898dcd5cbbba76ffed38e5371ee (patch) | |
tree | d49b4079f53a3b23a07f58a26e64754b818e2640 /sub/ass_mp.c | |
parent | 71cc322f13f6504ecbffbf4a41e1d466b892bb90 (diff) | |
download | mpv-dbc5d7b7db70f898dcd5cbbba76ffed38e5371ee.tar.bz2 mpv-dbc5d7b7db70f898dcd5cbbba76ffed38e5371ee.tar.xz |
sub: fully update plaintext subtitle styles at runtime
Update options like --sub-text-margin-y at runtime. These are somewhat
of a problem, because ass_set_selective_style_override() (intentionally)
does not override them. This should be fixed in libass (by providing
additional override modes), but for now this will do.
Also change the signature of mp_ass_configure(), so we can get access to
the track.
Additionally, drop the redundant setting of the style Alignment (it's
overwritten by mp_ass_set_style()).
See #1622 (again).
Diffstat (limited to 'sub/ass_mp.c')
-rw-r--r-- | sub/ass_mp.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sub/ass_mp.c b/sub/ass_mp.c index 9ec86e9dd8..44ce330d0e 100644 --- a/sub/ass_mp.c +++ b/sub/ass_mp.c @@ -93,7 +93,6 @@ void mp_ass_add_default_styles(ASS_Track *track, struct MPOpts *opts) track->default_style = sid; ASS_Style *style = track->styles + sid; style->Name = strdup("Default"); - style->Alignment = 2; mp_ass_set_style(style, track->PlayResY, opts->sub_text_style); } |