android: Only reupload subtitle surfaces if they have changed
commit3b55e958c5cb47fd9fb1ae3af48fa2d77500ab74
authorMartin Storsjö <martin@martin.st>
Fri, 31 Jan 2014 08:53:41 +0000 (31 10:53 +0200)
committerMartin Storsjö <martin@martin.st>
Fri, 7 Feb 2014 11:28:38 +0000 (7 13:28 +0200)
tree2f96cb2c9ca485ba0ed8a4c23464abd21ea4d75d
parenteec3b7c5111eebdd1e2f0ff86f3850612ca67c6f
android: Only reupload subtitle surfaces if they have changed

This avoids reuploading a full resolution 32 bpp surface for
every frame while the subtitles are displayed.

Ideally this information perhaps should be signalled from the vlc
core in some way, but until then, this avoids excessive slowdowns
with subtitles with the mediacodec direct rendering.

Signed-off-by: Martin Storsjö <martin@martin.st>
modules/video_output/android/opaque.c