summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-05-10 19:45:38 +0200
committerwm4 <wm4@nowhere>2013-09-08 03:20:38 +0200
commit9a1978b2ee0c68d3992fbc97fb42d462937129f1 (patch)
tree4df0b2265005bac422421a69bde41d8a8a41855c
parent9ec9bff4c1f3c00eb786fd5b012b36cd6a70bdfd (diff)
downloadmpv-9a1978b2ee0c68d3992fbc97fb42d462937129f1.tar.bz2
mpv-9a1978b2ee0c68d3992fbc97fb42d462937129f1.tar.xz
osd_libass: make sure Z-order is well defined for multiple events
Otherwise, events may overlap in arbitrary ways.
-rw-r--r--sub/osd_libass.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sub/osd_libass.c b/sub/osd_libass.c
index eadb0e8da5..32edf78f96 100644
--- a/sub/osd_libass.c
+++ b/sub/osd_libass.c
@@ -104,6 +104,7 @@ static ASS_Event *add_osd_ass_event(ASS_Track *track, const char *text)
event->Start = 0;
event->Duration = 100;
event->Style = track->default_style;
+ event->ReadOrder = n;
assert(event->Text == NULL);
if (text)
event->Text = strdup(text);