[vlc-commits] androidsurface: remove useless member

Rémi Denis-Courmont git at videolan.org
Sun Jul 14 18:26:16 CEST 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jul 14 19:25:00 2013 +0300| [828af6feb1a1e1d2fc31d846b3d80b67938d6e69] | committer: Rémi Denis-Courmont

androidsurface: remove useless member

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

 modules/video_output/androidsurface.c |   13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/modules/video_output/androidsurface.c b/modules/video_output/androidsurface.c
index 4464394..46e5463 100644
--- a/modules/video_output/androidsurface.c
+++ b/modules/video_output/androidsurface.c
@@ -108,8 +108,6 @@ struct vout_display_sys_t {
     Surface_lock2 s_lock2;
     Surface_unlockAndPost s_unlockAndPost;
 
-    picture_resource_t resource;
-
     /* density */
     int i_sar_num;
     int i_sar_den;
@@ -229,15 +227,8 @@ static int Open(vlc_object_t *p_this)
         goto enomem;
     picsys->sys = sys;
 
-    picture_resource_t *rsc = &sys->resource;
-    rsc->p_sys = picsys;
-
-    for (int i = 0; i < PICTURE_PLANE_MAX; i++) {
-        rsc->p[i].p_pixels = NULL;
-        rsc->p[i].i_pitch = 0;
-        rsc->p[i].i_lines = 0;
-    }
-    picture_t *picture = picture_NewFromResource(&fmt, rsc);
+    picture_resource_t resource = { .p_sys = picsys };
+    picture_t *picture = picture_NewFromResource(&fmt, &resource);
     if (!picture) {
         free(picsys);
         goto enomem;



More information about the vlc-commits mailing list