[vlc-devel] [PATCH 2/3] video_output: the fmt_target/vctx_target is always the src_fmt/src_vctx

Steve Lhomme robux4 at ycbcr.xyz
Mon Dec 2 14:45:23 CET 2019


No need to do a special case when the source is set or not.
---
 src/video_output/video_output.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 2f024ceead3..b1d8e4278c5 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -821,8 +821,8 @@ static void ThreadChangeFilters(vout_thread_t *vout,
     }
 
     es_format_t fmt_target;
-    es_format_InitFromVideo(&fmt_target, source ? source : &vout->p->filter.src_fmt);
-    vlc_video_context *vctx_target   = source ? src_vctx : vout->p->filter.src_vctx;
+    es_format_InitFromVideo(&fmt_target, &vout->p->filter.src_fmt);
+    vlc_video_context *vctx_target  = vout->p->filter.src_vctx;
 
     const es_format_t *p_fmt_current = &fmt_target;
     vlc_video_context *vctx_current = vctx_target;
-- 
2.17.1



More information about the vlc-devel mailing list