[vlc-commits] androidsurface: do not hide that we're working only on the first plane

Rafaël Carré git at videolan.org
Thu Jan 3 17:05:04 CET 2013


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Thu Jan  3 17:01:51 2013 +0100| [34a21b522a7b4e672725cba610f987c5d1560a55] | committer: Rafaël Carré

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=34a21b522a7b4e672725cba610f987c5d1560a55
---

 modules/video_output/androidsurface.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/video_output/androidsurface.c b/modules/video_output/androidsurface.c
index a6a2543..679b15c 100644
--- a/modules/video_output/androidsurface.c
+++ b/modules/video_output/androidsurface.c
@@ -346,9 +346,9 @@ static int  AndroidLockSurface(picture_t *picture) {
         return VLC_EGENERIC;
     }
 
-    picture->p->p_pixels = (uint8_t*)info->bits;
-    picture->p->i_lines = info->h;
-    picture->p->i_pitch = picture->p->i_pixel_pitch * info->s;
+    picture->p[0].p_pixels = (uint8_t*)info->bits;
+    picture->p[0].i_lines = info->h;
+    picture->p[0].i_pitch = picture->p[0].i_pixel_pitch * info->s;
 
     if (info->format == 0x32315659 /*ANDROID_IMAGE_FORMAT_YV12*/)
         SetupPictureYV12(info, picture);



More information about the vlc-commits mailing list