From 5242884a5c01b51518ef51af3d4725a29f94ec60 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Hugo=20Beauz=C3=A9e-Luyssen?= Date: Thu, 15 Dec 2016 16:33:45 +0100 Subject: [PATCH] video_chroma: chain: Fix inverted checks --- modules/video_chroma/chain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/video_chroma/chain.c b/modules/video_chroma/chain.c index 198c88e33f..0bde2a98cf 100644 --- a/modules/video_chroma/chain.c +++ b/modules/video_chroma/chain.c @@ -276,10 +276,10 @@ static int CreateChain( filter_t *p_parent, es_format_t *p_fmt_mid ) { p_filter = AppendTransform( p_parent->p_sys->p_chain, &p_parent->fmt_in, p_fmt_mid ); // Check if filter was enough: - if( es_format_IsSimilar(&p_filter->fmt_out, &p_parent->fmt_out )) - return VLC_SUCCESS; if( p_filter == NULL ) return VLC_EGENERIC; + if( es_format_IsSimilar(&p_filter->fmt_out, &p_parent->fmt_out )) + return VLC_SUCCESS; } else { -- 2.11.4.GIT