[vlc-devel] [PATCH v1 16/33] fps: only support push mode

Steve Lhomme robux4 at ycbcr.xyz
Fri Sep 25 16:46:52 CEST 2020


---
 modules/video_filter/fps.c | 19 -------------------
 1 file changed, 19 deletions(-)

diff --git a/modules/video_filter/fps.c b/modules/video_filter/fps.c
index 5681ba1dbca..788838f32eb 100644
--- a/modules/video_filter/fps.c
+++ b/modules/video_filter/fps.c
@@ -35,7 +35,6 @@
 
 static int Open( vlc_object_t *p_this);
 static void Close( vlc_object_t *p_this);
-static picture_t *Filter( filter_t *p_filter, picture_t *p_picture);
 
 #define CFG_PREFIX "fps-"
 
@@ -129,23 +128,6 @@ static int FilterPush( filter_t *p_filter, picture_t *p_picture, struct vlc_vide
     return VLC_SUCCESS;
 }
 
-static int SinkIntoPictureChain(struct vlc_video_sink *sink, picture_t *p_picture)
-{
-    vlc_picture_chain_t *p_chain = sink->sys;
-    vlc_picture_chain_Append( p_chain, p_picture );
-    return VLC_SUCCESS;
-}
-
-static picture_t *Filter( filter_t *p_filter, picture_t *p_picture)
-{
-    vlc_picture_chain_t chain;
-    vlc_picture_chain_Init( &chain );
-
-    struct vlc_video_sink sink = { &chain, SinkIntoPictureChain };
-    int res = FilterPush( p_filter, p_picture, &sink );
-    return chain.front;
-}
-
 static int Open( vlc_object_t *p_this)
 {
     filter_t *p_filter = (filter_t*)p_this;
@@ -195,7 +177,6 @@ static int Open( vlc_object_t *p_this)
 
     p_sys->p_previous_pic = NULL;
 
-    p_filter->pf_video_filter = Filter;
     p_filter->pf_video_filter_into = FilterPush;
 
     /* We don't change neither the format nor the picture */
-- 
2.26.2



More information about the vlc-devel mailing list