[vlc-devel] [PATCH 2/2] d3d9: dxa9: fix zero-initialization
Alexandre Janniaux
ajanni at videolabs.io
Fri Jul 24 11:24:26 CEST 2020
zero-initialization with = {} is a GNU extension and is only standardly
available in C++.
---
modules/hw/d3d9/dxa9.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/hw/d3d9/dxa9.c b/modules/hw/d3d9/dxa9.c
index 563818dc708..6d338eae7aa 100644
--- a/modules/hw/d3d9/dxa9.c
+++ b/modules/hw/d3d9/dxa9.c
@@ -347,7 +347,7 @@ static picture_t *AllocateCPUtoGPUTexture(filter_t *p_filter)
video_format_Copy(&fmt_staging, &p_filter->fmt_out.video);
fmt_staging.i_chroma = format;
- picture_resource_t dummy_res = {};
+ picture_resource_t dummy_res = {0};
picture_t *p_dst = picture_NewFromResource(&fmt_staging, &dummy_res);
if (p_dst == NULL) {
msg_Err(p_filter, "Failed to map create the temporary picture.");
--
2.27.0
More information about the vlc-devel
mailing list