[vlc-devel] [PATCH v2 2/3] video_output: create pictures using the output format of interactive filters

Steve Lhomme robux4 at ycbcr.xyz
Mon Aug 17 16:34:23 CEST 2020


This time no display lock. We just get the video format set on the 
output of the interactive chain.

On 2020-08-17 16:33, Steve Lhomme wrote:
> Also used for whatever the last filter of the filter chains is.
> ---
>   src/video_output/video_output.c | 8 +-------
>   1 file changed, 1 insertion(+), 7 deletions(-)
> 
> diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
> index e644da094a4..09aaa10e98a 100644
> --- a/src/video_output/video_output.c
> +++ b/src/video_output/video_output.c
> @@ -859,13 +859,7 @@ static void ThreadDelAllFilterCallbacks(vout_thread_sys_t *vout)
>   static picture_t *VoutVideoFilterInteractiveNewPicture(filter_t *filter)
>   {
>       vout_thread_sys_t *sys = filter->owner.sys;
> -
> -    picture_t *picture = picture_pool_Get(sys->private.private_pool);
> -    if (picture) {
> -        picture_Reset(picture);
> -        video_format_CopyCropAr(&picture->format, &filter->fmt_out.video);
> -    }
> -    return picture;
> +    return picture_NewFromFormat(&filter_chain_GetFmtOut(sys->filter.chain_interactive)->video);
>   }
>   
>   static picture_t *VoutVideoFilterStaticNewPicture(filter_t *filter)
> -- 
> 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