summaryrefslogtreecommitdiffstats
path: root/sub
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-08-14 23:59:35 +0200
committerwm4 <wm4@nowhere>2014-08-14 23:59:35 +0200
commitd5940fabcd6b477c72430c84e460975060807646 (patch)
treeb8392948588c4e3e5d42c10537351697424659e4 /sub
parent498644afafbcff1bf4f4bcdc1bbc8ef41aae9546 (diff)
downloadmpv-d5940fabcd6b477c72430c84e460975060807646.tar.bz2
mpv-d5940fabcd6b477c72430c84e460975060807646.tar.xz
sub: add option to workaround broken mkv files
See additions to options.rst.
Diffstat (limited to 'sub')
-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 51b9472198..733f0ffa1d 100644
--- a/sub/sd_ass.c
+++ b/sub/sd_ass.c
@@ -270,7 +270,7 @@ static void fix_events(struct sd *sd)
static void reset(struct sd *sd)
{
struct sd_ass_priv *ctx = sd->priv;
- if (ctx->flush_on_seek)
+ if (ctx->flush_on_seek || sd->opts->sub_clear_on_seek)
ass_flush_events(ctx->ass_track);
ctx->flush_on_seek = false;
}