]> git.sesse.net Git - vlc/commit
Fix corrupted rendering of EIA-608 captions
authorDevin Heitmueller <dheitmueller@kernellabs.com>
Sun, 13 Jan 2013 21:53:05 +0000 (16:53 -0500)
committerRafaël Carré <funman@videolan.org>
Tue, 15 Jan 2013 16:23:01 +0000 (17:23 +0100)
commitb8d9f708c6e5c4c443bd732f739529dee99cdef8
tree708bd35c300599bfd7217d2af56d8a83bc64ff25
parentf570e4e9ee08139489f4a701a6b8db8f400a32c3
Fix corrupted rendering of EIA-608 captions

When we moved the code to use the legacy method *or* the new method,
we lost the functionality that actually initialized the memory allocated
for the entire subpicture region (including the part where captions
weren't being rendered.

This was most obvious when regression testing on OSX, where it
resulted in old captions continuing to appear on screen even
after being cleared, or garbage in the render buffer.

Add a line that effectively zeros out the buffer prior to use.

Signed-off-by: Rafaël Carré <funman@videolan.org>
modules/text_renderer/freetype.c