[vlc-devel] [PATCH 4/8] vout: display: Fix initialization

Steve Lhomme robux4 at ycbcr.xyz
Fri Dec 4 08:14:35 CET 2020


Looking for "= {}" in the code I found a few more to fix in modules. Or 
is it OK when the {} is not casted to a struct ?

On 2020-12-03 16:16, Hugo Beauzée-Luyssen wrote:
> ---
>   src/video_output/display.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/video_output/display.c b/src/video_output/display.c
> index 1d304e2b32..bde914f48b 100644
> --- a/src/video_output/display.c
> +++ b/src/video_output/display.c
> @@ -726,7 +726,7 @@ vout_display_t *vout_display_New(vlc_object_t *parent,
>       vout_display_t *vd = &osys->display;
>       vd->source = &osys->source;
>       vd->fmt = &osys->display_fmt;
> -    vd->info = (vout_display_info_t){ };
> +    vd->info = (vout_display_info_t){ 0 };
>       vd->cfg = &osys->cfg;
>       vd->ops = NULL;
>       vd->sys = NULL;
> -- 
> 2.29.2
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
> 


More information about the vlc-devel mailing list