[vlc-devel] [PATCH 1/4] i422_yuy2: use VLC_EGENERIC instead of -1

Steve Lhomme robux4 at ycbcr.xyz
Mon Oct 5 17:14:41 CEST 2020


Looks like [4/4] is too big.

Here it is 
https://code.videolan.org/robUx4/vlc/-/commit/a1ffb6e21e8aafba85737446487dc8525c179a40

It's moving the filter callbacks to an operations structure.

On 2020-10-05 17:03, Steve Lhomme wrote:
> From: Alexandre Janniaux <ajanni at videolabs.io>
> 
> ---
>   modules/video_chroma/i422_yuy2.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/modules/video_chroma/i422_yuy2.c b/modules/video_chroma/i422_yuy2.c
> index 0dc990f8f8b..416dbfff02c 100644
> --- a/modules/video_chroma/i422_yuy2.c
> +++ b/modules/video_chroma/i422_yuy2.c
> @@ -103,7 +103,7 @@ static int Activate( vlc_object_t *p_this )
>       if( (p_filter->fmt_in.video.i_x_offset + p_filter->fmt_in.video.i_visible_width) & 1
>        || (p_filter->fmt_in.video.i_y_offset + p_filter->fmt_in.video.i_visible_height) & 1 )
>       {
> -        return -1;
> +        return VLC_EGENERIC;
>       }
>   
>       if( p_filter->fmt_in.video.orientation != p_filter->fmt_out.video.orientation )
> -- 
> 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