Commit e293b464 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

direct3d11: rename the picture_sys_pool_t variable

picsys sounded more like a picture_sys_t
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 2be0eca2
......@@ -1664,28 +1664,24 @@ static int Direct3D11CreatePool(vout_display_t *vd, video_format_t *fmt)
/* a D3D11VA pool will be created when needed */
return VLC_SUCCESS;
picture_sys_pool_t *picsys = calloc(1, sizeof(*picsys));
if (unlikely(picsys == NULL)) {
picture_sys_pool_t *poolsys = calloc(1, sizeof(*poolsys));
if (unlikely(poolsys == NULL)) {
return VLC_ENOMEM;
}
if ( sys->stagingQuad.pTexture != NULL )
picsys->texture = sys->stagingQuad.pTexture;
else
picsys->texture = sys->picQuad.pTexture;
picsys->vd = vd;
poolsys->texture = sys->picQuad.pTexture;
poolsys->vd = vd;
picture_resource_t resource = {
.p_sys = (picture_sys_t*) picsys,
.p_sys = (picture_sys_t*) poolsys,
.pf_destroy = DestroyDisplayPicture,
};
picture_t *picture = picture_NewFromResource(fmt, &resource);
if (!picture) {
free(picsys);
free(poolsys);
return VLC_ENOMEM;
}
ID3D11Texture2D_AddRef(picsys->texture);
ID3D11Texture2D_AddRef(poolsys->texture);
picture_pool_configuration_t pool_cfg;
memset(&pool_cfg, 0, sizeof(pool_cfg));
......
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