[vlc-commits] video_output: the fmt_target/vctx_target is always the src_fmt/src_vctx

Steve Lhomme git at videolan.org
Mon Dec 9 09:01:30 CET 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Nov 12 13:25:15 2019 +0100| [5f7c71f5ffc34108c9d756547b5088cf64482a1a] | committer: Steve Lhomme

video_output: the fmt_target/vctx_target is always the src_fmt/src_vctx

No need to do a special case when the source is set or not.

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

 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 2f024ceead..b1d8e4278c 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;



More information about the vlc-commits mailing list