Commit 34f4ced8 authored by Felix Abecassis's avatar Felix Abecassis Committed by Jean-Baptiste Kempf

android opaque: check error when locking the subtitles surface

(cherry picked from commit 2da3279c1765294d19980b0539d7fe7433942b8d)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 2ca7e203
......@@ -130,7 +130,11 @@ static void DisplaySubpicture(vout_display_t *vd, subpicture_t *subpicture)
}
ANativeWindow_Buffer buf = { 0 };
sys->native_window.winLock(sys->window, &buf, NULL);
int32_t err = sys->native_window.winLock(sys->window, &buf, NULL);
if (err) {
jni_UnlockAndroidSurface();
return;
}
if (buf.width >= sys->fmt.i_width && buf.height >= sys->fmt.i_height)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment