mirror of https://github.com/mpv-player/mpv
osd_libass: make sure Z-order is well defined for multiple events
Otherwise, events may overlap in arbitrary ways.
This commit is contained in:
parent
9ec9bff4c1
commit
9a1978b2ee
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue