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

MSW/GDI: simplify pool creation

parent 647f5417
...@@ -290,13 +290,9 @@ static int Init(vout_display_t *vd, ...@@ -290,13 +290,9 @@ static int Init(vout_display_t *vd,
rsc.p[0].i_pitch = i_pic_pitch;; rsc.p[0].i_pitch = i_pic_pitch;;
picture_t *picture = picture_NewFromResource(fmt, &rsc); picture_t *picture = picture_NewFromResource(fmt, &rsc);
if (picture) { if (picture != NULL)
picture_pool_configuration_t cfg; sys->pool = picture_pool_New(1, &picture);
memset(&cfg, 0, sizeof(cfg)); else
cfg.picture_count = 1;
cfg.picture = &picture;
sys->pool = picture_pool_NewExtended(&cfg);
} else
sys->pool = NULL; sys->pool = NULL;
UpdateRects(vd, NULL, NULL, true); UpdateRects(vd, NULL, NULL, true);
......
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