Commit 50dc2632 authored by Felix Abecassis's avatar Felix Abecassis Committed by Jean-Baptiste Kempf

android surface: check error when locking the video playback surface

(cherry picked from commit 713ab83f6a19057634e4c9b9c758ca397ebfc8e3)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 34f4ced8
......@@ -388,7 +388,11 @@ static int AndroidLockSurface(picture_t *picture)
if (sys->native_window.winLock) {
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 VLC_EGENERIC;
}
info->w = buf.width;
info->h = buf.height;
info->bits = buf.bits;
......
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