]> git.sesse.net Git - vlc/commit
android/opaque: fix crash on Close with subtitles
authorThomas Guillem <thomas@gllm.fr>
Fri, 31 Oct 2014 16:17:23 +0000 (17:17 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 31 Oct 2014 17:03:45 +0000 (18:03 +0100)
commit0ba7c06e1088a9b3e2fddcdf5682cb38faa73b77
treea92061637c19a8014b2fcc01e4a0c13b23f86d35
parent4e943d01c2ec896b9f3cd3f5fbe5a6843f1392b1
android/opaque: fix crash on Close with subtitles

The pixels allocated from picture_NewFromFormat were replaced (and leaked) by
pixels allocated by android native windows. This also leaded to a crash on
Close when subtitles_picture was freed.

Use picture_NewFromResource with an empty to resource in order to don't
allocate any pixels.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/video_output/android/opaque.c