mirror of
https://github.com/mpv-player/mpv
synced 2025-01-14 11:01:35 +00:00
sd_ass: fix secondary subtitle mode
If a second subtitle is shown, it should be forced to display on top of the screen. This was working only if --no-ass was passed, because otherwise the subtitle was rendered normally (i.e. usually on the bottom).
This commit is contained in:
parent
01a2af6c7c
commit
d2efa56d48
@ -224,7 +224,7 @@ static void get_bitmaps(struct sd *sd, struct mp_osd_res dim, double pts,
|
||||
{
|
||||
struct sd_ass_priv *ctx = sd->priv;
|
||||
struct MPOpts *opts = sd->opts;
|
||||
bool no_ass = !opts->ass_enabled;
|
||||
bool no_ass = !opts->ass_enabled || ctx->on_top;
|
||||
bool converted = ctx->is_converted || no_ass;
|
||||
ASS_Track *track = no_ass ? ctx->shadow_track : ctx->ass_track;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user