[vlc-commits] filters: chain: code cleaning

Steve Lhomme git at videolan.org
Fri Aug 30 09:58:58 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Aug 26 13:04:00 2019 +0200| [c7338e3f045cc5174fb48ae73c145a7d9c509530] | committer: Steve Lhomme

filters: chain: code cleaning

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

 modules/video_chroma/chain.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/modules/video_chroma/chain.c b/modules/video_chroma/chain.c
index 4be4bc8e1e..52b12d447d 100644
--- a/modules/video_chroma/chain.c
+++ b/modules/video_chroma/chain.c
@@ -289,10 +289,7 @@ static int BuildTransformChain( filter_t *p_filter )
     EsFormatMergeSize( &fmt_mid, &p_filter->fmt_out, &p_filter->fmt_in );
     i_ret = CreateChain( p_filter, &fmt_mid );
     es_format_Clean( &fmt_mid );
-    if( i_ret == VLC_SUCCESS )
-        return VLC_SUCCESS;
-
-    return VLC_EGENERIC;
+    return i_ret;
 }
 
 static int BuildChromaResize( filter_t *p_filter )



More information about the vlc-commits mailing list