[vlc-commits] video_chroma: chain: Fix inverted checks

Hugo Beauzée-Luyssen git at videolan.org
Thu Dec 15 16:34:33 CET 2016


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Dec 15 16:33:45 2016 +0100| [5242884a5c01b51518ef51af3d4725a29f94ec60] | committer: Hugo Beauzée-Luyssen

video_chroma: chain: Fix inverted checks

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5242884a5c01b51518ef51af3d4725a29f94ec60
---

 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 198c88e..0bde2a9 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
     {



More information about the vlc-commits mailing list