Commit 713ab83f authored by Felix Abecassis's avatar Felix Abecassis

android surface: check error when locking the video playback surface

parent 2da3279c
...@@ -388,7 +388,11 @@ static int AndroidLockSurface(picture_t *picture) ...@@ -388,7 +388,11 @@ static int AndroidLockSurface(picture_t *picture)
if (sys->native_window.winLock) { if (sys->native_window.winLock) {
ANativeWindow_Buffer buf = { 0 }; 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->w = buf.width;
info->h = buf.height; info->h = buf.height;
info->bits = buf.bits; 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