[vlc-devel] [PATCH 2/2] display: reindent

Steve Lhomme robux4 at ycbcr.xyz
Fri Nov 13 16:56:56 CET 2020


---
 src/video_output/display.c | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

diff --git a/src/video_output/display.c b/src/video_output/display.c
index b2efcbbbfd7..d64396827f8 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -346,17 +346,12 @@ static int VoutDisplayCreateRender(vout_display_t *vd)
     es_format_InitFromVideo(&src, &v_src);
 
     /* */
-    int ret = -1;
+    es_format_t dst;
+    es_format_InitFromVideo(&dst, &v_dst);
 
-    {
-        es_format_t dst;
-
-        es_format_InitFromVideo(&dst, &v_dst);
-
-        filter_chain_Reset(osys->converters, &src, osys->src_vctx, &dst);
-        ret = filter_chain_AppendConverter(osys->converters, &dst);
-        es_format_Clean(&dst);
-    }
+    filter_chain_Reset(osys->converters, &src, osys->src_vctx, &dst);
+    int ret = filter_chain_AppendConverter(osys->converters, &dst);
+    es_format_Clean(&dst);
     es_format_Clean(&src);
 
     if (ret != 0) {
-- 
2.26.2



More information about the vlc-devel mailing list