osd_libass: make sure Z-order is well defined for multiple events

Otherwise, events may overlap in arbitrary ways.
This commit is contained in:
wm4 2013-05-10 19:45:38 +02:00
parent 9ec9bff4c1
commit 9a1978b2ee
1 changed files with 1 additions and 0 deletions

View File

@ -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);