assrender: fix seeking backwards
authorTim-Philipp Müller <tim@centricular.com>
Sat, 6 Apr 2019 13:39:22 +0000 (14:39 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 6 Apr 2019 14:19:07 +0000 (15:19 +0100)
commitab12a4cd0fe044a96dd156cec3f83aa29dd3a6c4
treeb8f04f043bc1d80e4a66c914d638761d744bf16b
parente52f33430df83ba070500e450ef2c4b14904a8f9
assrender: fix seeking backwards

Use proper API to flush libass events when we do
a flushing seek, and also do it in FLUSH_STOP
rather than FLUSH_START, so we can be sure
streaming has stopped.

Fixes seeking back in time.

Something seems to have changed in libass that
renders the old manual way of flushing events
ineffective and libass then seems to ignore
timestamps that are older than the ones last
seen then if we do it the old way.

Fixes #916
ext/assrender/gstassrender.c