[vlc-devel] [PATCH v1 28/33] chroma: chain: use the filter push mode

Steve Lhomme robux4 at ycbcr.xyz
Fri Sep 25 16:47:04 CEST 2020


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

diff --git a/modules/video_chroma/chain.c b/modules/video_chroma/chain.c
index 7ec2798cc3c..98ec539e461 100644
--- a/modules/video_chroma/chain.c
+++ b/modules/video_chroma/chain.c
@@ -53,7 +53,7 @@ vlc_module_end ()
 /*****************************************************************************
  * Local prototypes.
  *****************************************************************************/
-static picture_t *Chain         ( filter_t *, picture_t * );
+static int Chain( filter_t *, picture_t *, struct vlc_video_sink * );
 
 static int BuildTransformChain( filter_t *p_filter );
 static int BuildChromaResize( filter_t * );
@@ -213,7 +213,7 @@ static int Activate( filter_t *p_filter, int (*pf_build)(filter_t *) )
     }
     assert(p_filter->vctx_out == filter_chain_GetVideoCtxOut( p_sys->p_chain ));
     /* */
-    p_filter->pf_video_filter = Chain;
+    p_filter->pf_video_filter_into = Chain;
     return VLC_SUCCESS;
 }
 
@@ -268,10 +268,10 @@ static void Destroy( vlc_object_t *p_this )
 /*****************************************************************************
  * Chain
  *****************************************************************************/
-static picture_t *Chain( filter_t *p_filter, picture_t *p_pic )
+static int Chain( filter_t *p_filter, picture_t *p_pic, struct vlc_video_sink *sink )
 {
     filter_sys_t *p_sys = p_filter->p_sys;
-    return filter_chain_VideoFilter( p_sys->p_chain, p_pic );
+    return filter_chain_VideoFilterInto( p_sys->p_chain, p_pic, sink );
 }
 
 /*****************************************************************************
-- 
2.26.2



More information about the vlc-devel mailing list