[vlc-devel] [PATCH v3 18/24] fps: use the picture_chain API

Steve Lhomme robux4 at ycbcr.xyz
Mon Sep 21 08:29:54 CEST 2020


p_sys->p_previous_pic represents the picture chain.
---
 modules/video_filter/fps.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/modules/video_filter/fps.c b/modules/video_filter/fps.c
index e6688c4f20b..38db0e7854f 100644
--- a/modules/video_filter/fps.c
+++ b/modules/video_filter/fps.c
@@ -124,10 +124,8 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_picture)
 
         picture_Copy( p_tmp, p_sys->p_previous_pic);
         p_tmp->date = date_Get( &p_sys->next_output_pts );
-        p_tmp->p_next = NULL;
 
-        last_pic->p_next = p_tmp;
-        last_pic = p_tmp;
+        last_pic = vlc_picture_chain_Append( last_pic, p_tmp );
         date_Increment( &p_sys->next_output_pts, 1 );
     }
 
-- 
2.26.2



More information about the vlc-devel mailing list