summaryrefslogtreecommitdiffstats
path: root/sub/sd_ass.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-11-22 22:06:56 +0100
committerwm4 <wm4@nowhere>2015-11-22 22:06:56 +0100
commitd2efa56d48464107ed14c9822586eee5276a4b32 (patch)
tree646e07e16292282f6fc8c75e1c7be511c4499609 /sub/sd_ass.c
parent01a2af6c7c98c04e7cc834ea019f31f8c698d125 (diff)
downloadmpv-d2efa56d48464107ed14c9822586eee5276a4b32.tar.bz2
mpv-d2efa56d48464107ed14c9822586eee5276a4b32.tar.xz
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).
Diffstat (limited to 'sub/sd_ass.c')
-rw-r--r--sub/sd_ass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sub/sd_ass.c b/sub/sd_ass.c
index 804e561e87..97ca3fad6d 100644
--- a/sub/sd_ass.c
+++ b/sub/sd_ass.c
@@ -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;