[vlc-devel] [PATCH 08/15] kms: use the source format to create the local picture

Thomas Guillem thomas at gllm.fr
Thu Sep 3 10:10:49 CEST 2020


OK

On Thu, Sep 3, 2020, at 07:52, Steve Lhomme wrote:
> At this stage the only difference betweeen vd->source and vd->fmt is the SAR.
> Since this local picture is only use to copy planes, the SAR is never used.
> 
> It's possible that the original code is wrong as it doesn't take in account the
> "kms-vlc-chroma" forced chroma that the core will assume is used.
> ---
>  modules/video_output/kms.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/modules/video_output/kms.c b/modules/video_output/kms.c
> index 6de37d33727..e74ff5a3dab 100644
> --- a/modules/video_output/kms.c
> +++ b/modules/video_output/kms.c
> @@ -578,7 +578,7 @@ static int OpenDisplay(vout_display_t *vd)
>  
>      picture_resource_t rsc = { 0 };
>  
> -    sys->picture = picture_NewFromResource(vd->fmt, &rsc);
> +    sys->picture = picture_NewFromResource(vd->source, &rsc);
>  
>      if (!sys->picture)
>          goto err_out;
> -- 
> 2.26.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