Commit 828af6fe authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

androidsurface: remove useless member

parent ffcfa6da
...@@ -108,8 +108,6 @@ struct vout_display_sys_t { ...@@ -108,8 +108,6 @@ struct vout_display_sys_t {
Surface_lock2 s_lock2; Surface_lock2 s_lock2;
Surface_unlockAndPost s_unlockAndPost; Surface_unlockAndPost s_unlockAndPost;
picture_resource_t resource;
/* density */ /* density */
int i_sar_num; int i_sar_num;
int i_sar_den; int i_sar_den;
...@@ -229,15 +227,8 @@ static int Open(vlc_object_t *p_this) ...@@ -229,15 +227,8 @@ static int Open(vlc_object_t *p_this)
goto enomem; goto enomem;
picsys->sys = sys; picsys->sys = sys;
picture_resource_t *rsc = &sys->resource; picture_resource_t resource = { .p_sys = picsys };
rsc->p_sys = picsys; picture_t *picture = picture_NewFromResource(&fmt, &resource);
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);
if (!picture) { if (!picture) {
free(picsys); free(picsys);
goto enomem; goto enomem;
......
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