Commit 34a21b52 authored by Rafaël Carré's avatar Rafaël Carré

androidsurface: do not hide that we're working only on the first plane

parent 82f362ea
...@@ -346,9 +346,9 @@ static int AndroidLockSurface(picture_t *picture) { ...@@ -346,9 +346,9 @@ static int AndroidLockSurface(picture_t *picture) {
return VLC_EGENERIC; return VLC_EGENERIC;
} }
picture->p->p_pixels = (uint8_t*)info->bits; picture->p[0].p_pixels = (uint8_t*)info->bits;
picture->p->i_lines = info->h; picture->p[0].i_lines = info->h;
picture->p->i_pitch = picture->p->i_pixel_pitch * info->s; picture->p[0].i_pitch = picture->p[0].i_pixel_pitch * info->s;
if (info->format == 0x32315659 /*ANDROID_IMAGE_FORMAT_YV12*/) if (info->format == 0x32315659 /*ANDROID_IMAGE_FORMAT_YV12*/)
SetupPictureYV12(info, picture); SetupPictureYV12(info, picture);
......
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