[vlc-commits] display: reindent

Steve Lhomme git at videolan.org
Mon Nov 23 14:45:54 CET 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Nov 12 13:03:41 2020 +0100| [afc0dfd628414436839abab562c0b4954cb96c79] | committer: Steve Lhomme

display: reindent

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

 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 fa00e8718d..d1e06c9922 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) {



More information about the vlc-commits mailing list