Work around vo gl/libass subtitle timing problem
commite948b1ae06afaff3e10df4c03a59133fc0b35105
authorUoti Urpala <uau@glyph.nonexistent.invalid>
Tue, 9 Dec 2008 02:14:38 +0000 (9 04:14 +0200)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Tue, 9 Dec 2008 02:14:38 +0000 (9 04:14 +0200)
treeb109007db3fd75ed81b490420209e3878adf3261
parent66cefd5f7196022f5f0c45b2f68a8fa3b354c917
Work around vo gl/libass subtitle timing problem

vo gl generates bitmaps for EOSD content (libass subtitles) when
DRAW_EOSD is called but actual drawing of both EOSD and OSD is done in
draw_osd(). Since draw_osd() was called first it drew the EOSD content
from the previous frame, so the subtitles were always one frame late.
As a simple workaround update EOSD content first, then normal OSD.
This makes vo gl work correctly and should have no effect on anything
else.
libmpcodecs/dec_video.c