vlc | branch: master | Steve Lhomme <[email protected]> | Fri Jul 19 14:30:54 2019 +0200| [9160cca85deb07ad21292a0f14d1bfa239198c2e] | committer: Steve Lhomme
dxa9: set uninitialized picture_resource_t fields to 0 > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9160cca85deb07ad21292a0f14d1bfa239198c2e --- modules/hw/d3d9/dxa9.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/hw/d3d9/dxa9.c b/modules/hw/d3d9/dxa9.c index 5d1e0fa5be..6cc7748daf 100644 --- a/modules/hw/d3d9/dxa9.c +++ b/modules/hw/d3d9/dxa9.c @@ -412,8 +412,9 @@ int D3D9OpenCPUConverter( vlc_object_t *obj ) if ( p_filter->fmt_in.video.i_chroma != texDesc.Format ) { - picture_resource_t res; - res.pf_destroy = DestroyPicture; + picture_resource_t res = { + res.pf_destroy = DestroyPicture, + }; picture_sys_d3d9_t *res_sys = calloc(1, sizeof(picture_sys_d3d9_t)); if (res_sys == NULL) { err = VLC_ENOMEM; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
